We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 626d568 commit 10a77fdCopy full SHA for 10a77fd
lib/style-rewriter.js
@@ -36,9 +36,13 @@ module.exports = function (css, map) {
36
var query = loaderUtils.parseQuery(this.query)
37
var options = this.options.vue || {}
38
var autoprefixOptions = options.autoprefixer
39
+
40
+ // plugins
41
var plugins = options.postcss
- ? options.postcss.slice() // make sure to copy it
- : []
42
+ if (typeof plugins === 'function') {
43
+ plugins = plugins.call(this, this)
44
+ }
45
+ plugins = plugins ? plugins.slice() : [] // make sure to copy it
46
47
// scoped css
48
if (query.scoped) {
0 commit comments