diff --git a/lib/builder/builder.js b/lib/builder/builder.js index b5a51aee9b..91f3a66746 100644 --- a/lib/builder/builder.js +++ b/lib/builder/builder.js @@ -137,7 +137,7 @@ export default class Builder { if (isPureObject(this.options.build.postcss.plugins)) { this.options.build.postcss.plugins = Object.keys(this.options.build.postcss.plugins) .map(p => { - const plugin = require(p) + const plugin = require(this.nuxt.resolvePath(p)) const opts = this.options.build.postcss.plugins[p] if (opts === false) return // Disabled const instance = plugin(opts)