Merge pull request #25 from nicolas-brousse/patch-1
Fix examples in README
This commit is contained in:
commit
b631aa4ea4
@ -25,7 +25,7 @@ const postCssPlugin = require("esbuild-plugin-postcss2");
|
|||||||
esbuild.build({
|
esbuild.build({
|
||||||
...
|
...
|
||||||
plugins: [
|
plugins: [
|
||||||
postCssPlugin()
|
postCssPlugin.default()
|
||||||
]
|
]
|
||||||
...
|
...
|
||||||
});
|
});
|
||||||
@ -41,7 +41,7 @@ const autoprefixer = require("autoprefixer");
|
|||||||
esbuild.build({
|
esbuild.build({
|
||||||
...
|
...
|
||||||
plugins: [
|
plugins: [
|
||||||
postCssPlugin({
|
postCssPlugin.default({
|
||||||
plugins: [autoprefixer]
|
plugins: [autoprefixer]
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
@ -54,7 +54,7 @@ esbuild.build({
|
|||||||
PostCSS modules are enabled by default. You can pass in a config or disable it with the `modules` field:
|
PostCSS modules are enabled by default. You can pass in a config or disable it with the `modules` field:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
postCssPlugin({
|
postCssPlugin.default({
|
||||||
// pass in `postcss-modules` custom options
|
// pass in `postcss-modules` custom options
|
||||||
// set to false to disable
|
// set to false to disable
|
||||||
modules: {
|
modules: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user