Skip to content

Commit

Permalink
fix(postcss): attempt to detect new API schema
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Oct 27, 2021
1 parent 7edf202 commit 49f6a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt-windicss/src/module.ts
Expand Up @@ -183,7 +183,7 @@ export default defineNuxtModule<NuxtWindiOptions>(nuxt => ({
},
}

if (isNuxt3(nuxt)) {
if (isNuxt3(nuxt) || typeof postcssOptions.postcssOptions !== 'undefined') {
// make sure the plugin object isn't undefined booted
if (!postcssOptions.postcssOptions.plugins)
postcssOptions.postcssOptions.plugins = {}
Expand Down

0 comments on commit 49f6a6c

Please sign in to comment.