Skip to content

Commit

Permalink
fix(nuxt): Custom option priority in cssnano (#3679)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Apr 5, 2024
1 parent a03c25c commit 4e11d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/index.ts
Expand Up @@ -88,8 +88,8 @@ 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, normalizeWhitespace: false, discardComments: false },
preset?.[1],
)],
}
}
Expand Down

0 comments on commit 4e11d62

Please sign in to comment.