Skip to content

Commit 81297de

Browse files
authored
Update README.md
1 parent da93a0b commit 81297de

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,21 @@ Plugin for [esbuild](https://esbuild.github.io/) to support PostCSS
99
## Install
1010

1111
```bash
12-
npm i esbuild esbuild-plugin-postcss
12+
npm i esbuild @deanc/esbuild-plugin-postcss
13+
```
14+
or yarn
15+
```bash
16+
yarn add esbuid @deanc/esbuild-plugin-postcss
17+
```
18+
19+
## include file
20+
Es6+ syntax:
21+
```js
22+
import postCssPlugin from '@deanc/esbuild-plugin-postcss';
23+
```
24+
nodeModules:
25+
```js
26+
const postCssPlugin = require("@deanc/esbuild-plugin-postcss");
1327
```
1428

1529
## Usage example
@@ -33,7 +47,7 @@ Create file `build.js`:
3347
```js
3448
const esbuild = require("esbuild");
3549
const autoprefixer = require("autoprefixer");
36-
const postCssPlugin = require("esbuild-plugin-postcss");
50+
const postCssPlugin = require("@deanc/esbuild-plugin-postcss");
3751

3852
esbuild
3953
.build({

0 commit comments

Comments
 (0)