fix(schema, postcss): cssnano is enabled if not dev (#5583)

This commit is contained in:
Haruaki OTAKE 2022-06-24 03:27:23 +09:00 committed by GitHub
parent 2db154fde4
commit ad420238b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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