Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
support postcss.options.plugins being a function (#866)
  • Loading branch information
barraponto authored and yyx990803 committed Jul 29, 2017
1 parent e6abc19 commit b748a5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/style-compiler/load-postcss-config.js
Expand Up @@ -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 || {}
}

Expand Down

0 comments on commit b748a5a

Please sign in to comment.