Skip to content

Commit

Permalink
enhance(css): minify css for production mode
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 authored and tiensonqin committed Oct 13, 2022
1 parent 489090b commit 43e5543
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
'postcss-import-ext-glob': {},
'postcss-import': {},
'tailwindcss/nesting': 'postcss-nested',
tailwindcss: {}
tailwindcss: {},
...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {})
}
}

0 comments on commit 43e5543

Please sign in to comment.