Skip to content
Permalink
Browse files
support postcss.options.plugins being a function (#866)
  • Loading branch information
barraponto authored and yyx990803 committed Jul 29, 2017
1 parent e6abc19 commit b748a5a42eb8c626f354565ba57c7d10e7ce9bb3
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/style-compiler/load-postcss-config.js
@@ -27,7 +27,9 @@ module.exports = function loadPostcssConfig (loaderContext, inlineConfig) {
if (Array.isArray(inlineConfig)) {
plugins = inlineConfig
} else if (isObject(inlineConfig)) {
plugins = inlineConfig.plugins || []
plugins = (typeof inlineConfig.plugins === 'function')
? inlineConfig.plugins.call(this, this)
: inlineConfig.plugins || []
options = inlineConfig.options || {}
}

0 comments on commit b748a5a

Please sign in to comment.