From ad420238b1e7635e18f6f8cecef868cd2d83e8b3 Mon Sep 17 00:00:00 2001 From: Haruaki OTAKE Date: Fri, 24 Jun 2022 03:27:23 +0900 Subject: [PATCH] fix(schema, postcss): cssnano is enabled if not dev (#5583) --- packages/schema/src/config/postcss.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/schema/src/config/postcss.ts b/packages/schema/src/config/postcss.ts index db0a1d4304..60edb87784 100644 --- a/packages/schema/src/config/postcss.ts +++ b/packages/schema/src/config/postcss.ts @@ -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