Skip to content

Commit

Permalink
fix(nuxt): disable cssnano normalizeWhitespace optimization (#2229)
Browse files Browse the repository at this point in the history
  • Loading branch information
sibbng committed Feb 22, 2023
1 parent 9d5e3c6 commit a2f44f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/index.ts
Expand Up @@ -68,7 +68,7 @@ export default defineNuxtModule<UnocssNuxtOptions>({
const preset = nuxt.options.postcss.plugins.cssnano.preset
nuxt.options.postcss.plugins.cssnano = {
preset: [preset?.[0] || 'default', Object.assign(
preset?.[1] || {}, { mergeRules: false },
preset?.[1] || {}, { mergeRules: false, normalizeWhitespace: false },
)],
}
}
Expand Down

0 comments on commit a2f44f8

Please sign in to comment.