Skip to content

Commit be4bafc

Browse files
committed
fix postcss plugin list growing over rebuilds
1 parent 0bd18db commit be4bafc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/style-rewriter.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ module.exports = function (css, map) {
3636
var query = loaderUtils.parseQuery(this.query)
3737
var options = this.options.vue || {}
3838
var autoprefixOptions = options.autoprefixer
39-
var plugins = options.postcss || []
39+
var plugins = options.postcss
40+
? options.postcss.slice() // make sure to copy it
41+
: []
4042

4143
// scoped css
4244
if (query.scoped) {

0 commit comments

Comments
 (0)