Skip to content

Commit 8b11931

Browse files
committed
fix: insert strip condition once
1 parent e4fea96 commit 8b11931

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/webpack-plugin/lib/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,8 +1884,7 @@ try {
18841884
})
18851885
const insertStripLoaders = (index) => {
18861886
if (index !== -1) {
1887-
loaders.splice(index, 0, { loader: styleStripConditionalPath })
1888-
loaders.splice(index + 2, 0, { loader: styleStripConditionalPath })
1887+
loaders.splice(index + 1, 0, { loader: styleStripConditionalPath })
18891888
return true
18901889
}
18911890
return false

0 commit comments

Comments
 (0)