Disable PurgeCSS in dev (works only for production)
This commit is contained in:
parent
b1408d17c6
commit
38d4619e07
1 changed files with 6 additions and 4 deletions
|
@ -11,9 +11,11 @@ module.exports = {
|
||||||
preset: 'default'
|
preset: 'default'
|
||||||
})
|
})
|
||||||
: null,
|
: null,
|
||||||
purgecss({
|
process.env.NODE_ENV === 'production'
|
||||||
|
? purgecss({
|
||||||
content: ['./src/*.htm'],
|
content: ['./src/*.htm'],
|
||||||
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
|
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
|
||||||
})
|
})
|
||||||
|
:null,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue