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 = {
|
module.exports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
require('tailwindcss'),
|
require('tailwindcss'),
|
||||||
require('autoprefixer'),
|
process.env.NODE_ENV === 'production' ? require('autoprefixer') : null,
|
||||||
cssnano({
|
process.env.NODE_ENV === 'production'
|
||||||
|
? cssnano({
|
||||||
preset: 'default'
|
preset: 'default'
|
||||||
}),
|
})
|
||||||
|
: null,
|
||||||
purgecss({
|
purgecss({
|
||||||
content: ['./src/*.htm'],
|
content: ['./src/*.htm'],
|
||||||
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
|
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
|
||||||
|
|
Loading…
Reference in a new issue