File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -145,11 +145,19 @@ function cloneRule (rule, normalizedRule) {
145
145
return res
146
146
}
147
147
148
- const reuseIdentWhitelist = / ( c s s - l o a d e r | v u e - s t y l e - l o a d e r ) /
148
+ const reuseIdentWhitelist = [
149
+ 'css-loader' ,
150
+ '(vue-)?style-loader' ,
151
+ 'postcss-loader' ,
152
+ 'extract-text-webpack-plugin' ,
153
+ 'mini-css-extract-plugin'
154
+ ]
155
+
156
+ const reuseIdentPattern = new RegExp ( `(${ reuseIdentWhitelist . join ( '|' ) } )` )
149
157
150
158
function cleanIdent ( use ) {
151
159
if ( use . ident ) {
152
- if ( reuseIdentWhitelist . test ( use . loader ) ) {
160
+ if ( reuseIdentPattern . test ( use . loader ) ) {
153
161
// Reuse options ident, so that imports from within css-loader would get the
154
162
// exact same request prefixes, avoiding duplicated modules (#1199)
155
163
use . options . ident = use . ident
You can’t perform that action at this time.
0 commit comments