Mark autoprefixer and cssnano as "production-only"
This commit is contained in:
parent
0de6ba78f3
commit
aa335adb2b
1 changed files with 6 additions and 4 deletions
|
@ -4,10 +4,12 @@ const cssnano = require('cssnano')
|
|||
module.exports = {
|
||||
plugins: [
|
||||
require('tailwindcss'),
|
||||
require('autoprefixer'),
|
||||
cssnano({
|
||||
preset: 'default'
|
||||
}),
|
||||
process.env.NODE_ENV === 'production' ? require('autoprefixer') : null,
|
||||
process.env.NODE_ENV === 'production'
|
||||
? cssnano({
|
||||
preset: 'default'
|
||||
})
|
||||
: null,
|
||||
purgecss({
|
||||
content: ['./src/*.htm'],
|
||||
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
|
||||
|
|
Loading…
Reference in a new issue