Skip to content

Commit

Permalink
chore: update examples to buildModules (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
lecoueyl authored Apr 29, 2020
1 parent 09507a1 commit 9345ebf
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default {
'nuxt-purgecss',

// With options
['nuxt-purgecss', { /* module options */ }]
['nuxt-purgecss', { /* module options */ }],
]
}
```
Expand Down Expand Up @@ -97,7 +97,7 @@ This applies to **both modes**, not only to `webpack mode`.
```js
//nuxt.config.js
export default {
modules: [
buildModules: [
'nuxt-purgecss',
]
}
Expand All @@ -109,12 +109,12 @@ export default {
```js
//nuxt.config.js
export default {
modules: [
buildModules: [
'nuxt-purgecss',
],

purgeCSS: {
whitelist: () => ['only-this-class']
whitelist: () => ['only-this-class'],
}
}
```
Expand All @@ -125,12 +125,12 @@ export default {
```js
//nuxt.config.js
export default {
modules: [
buildModules: [
'nuxt-purgecss',
],

purgeCSS: {
whitelist: ['defaults-and-this-class']
whitelist: ['defaults-and-this-class'],
}
}
```
Expand All @@ -141,12 +141,12 @@ export default {
```js
//nuxt.config.js
export default {
modules: [
buildModules: [
'nuxt-purgecss',
],

purgeCSS: {
whitelist: (defaultWhitelst) => defaultWhitelst.slice(1)
whitelist: (defaultWhitelst) => defaultWhitelst.slice(1),
}
}
```
Expand All @@ -158,7 +158,7 @@ If you want to apply a custom extractor to the extensions that the default extra
```js
//nuxt.config.js
export default {
modules: [
buildModules: [
'nuxt-purgecss',
],

Expand Down

0 comments on commit 9345ebf

Please sign in to comment.