Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Commit c8cf967

Browse files
committed
fix postcss plugin growing over rebuilds
1 parent a6f5fe7 commit c8cf967

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
@@ -44,7 +44,9 @@ module.exports = function (id, css, scoped) {
4444
if (val) {
4545
return Promise.resolve(val)
4646
} else {
47-
var plugins = options.postcss || []
47+
var plugins = options.postcss
48+
? options.postcss.slice()
49+
: []
4850
// scoped css rewrite
4951
if (scoped) {
5052
plugins.push(addId)

0 commit comments

Comments
 (0)