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