mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
fix(schema, postcss): cssnano is enabled if not dev (#5583)
This commit is contained in:
parent
2db154fde4
commit
ad420238b1
@ -41,7 +41,7 @@ export default {
|
||||
autoprefixer: {},
|
||||
|
||||
cssnano: {
|
||||
$resolve: (val, get) => val ?? (get('dev') && {
|
||||
$resolve: (val, get) => val ?? (!get('dev') && {
|
||||
preset: ['default', {
|
||||
// Keep quotes in font values to prevent from HEX conversion
|
||||
// https://github.com/nuxt/nuxt.js/issues/6306
|
||||
|
Loading…
Reference in New Issue
Block a user