diff --git a/packages/webpack/src/utils/postcss.js b/packages/webpack/src/utils/postcss.js index 1377fb71ac..1b30a7a92e 100644 --- a/packages/webpack/src/utils/postcss.js +++ b/packages/webpack/src/utils/postcss.js @@ -150,7 +150,7 @@ export default class PostcssConfig { // Map postcss plugins into instances on object mode once config.plugins = this.sortPlugins(config) .map((p) => { - const plugin = this.buildContext.nuxt.resolver.requireModule(p) + const plugin = this.buildContext.nuxt.resolver.requireModule(p, { paths: [__dirname] }) const opts = plugins[p] if (opts === false) { return false // Disabled