perf: use normal require for postcss

This commit is contained in:
Pooya Parsa 2018-04-02 00:13:23 +04:30
parent 9f8aea5a4c
commit c979802c4d

View File

@ -84,7 +84,7 @@ export default class PostcssConfig {
// Map postcss plugins into instances on object mode once
config.plugins = Object.keys(plugins)
.map(p => {
const plugin = this.nuxt.requireModule(p)
const plugin = require(p)
const opts = plugins[p]
if (opts === false) return // Disabled
const instance = plugin(opts)