mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix: Fix PostCSS plugin resolution when used in nuxt.config.js
This commit is contained in:
parent
ac3b3f27a7
commit
aa342330d7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user