File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ module.exports.pitch = function (remainingRequest) {
13
13
const loaders = this . loaders . slice ( 1 ) // remove self
14
14
15
15
// do not inject if user uses null-loader to void the type (#1239)
16
- if ( loaders . some ( l => / ( \/ | \\ ) n u l l - l o a d e r / . test ( l . path ) ) ) {
16
+ if ( loaders . some ( l => / ( \/ | \\ | @ ) n u l l - l o a d e r / . test ( l . path ) ) ) {
17
17
return
18
18
}
19
19
@@ -45,8 +45,8 @@ module.exports.pitch = function (remainingRequest) {
45
45
46
46
// Inject style-post-loader before css-loader for scoped CSS and trimming
47
47
if ( query . type === `style` ) {
48
- const cssLoaderIndex = loaders . findIndex ( l => / ( \/ | \\ ) c s s - l o a d e r / . test ( l . path ) )
49
- if ( cssLoaderIndex ) {
48
+ const cssLoaderIndex = loaders . findIndex ( l => / ( \/ | \\ | @ ) c s s - l o a d e r / . test ( l . path ) )
49
+ if ( cssLoaderIndex > - 1 ) {
50
50
const afterLoaders = loaders . slice ( 0 , cssLoaderIndex + 1 )
51
51
const beforeLoaders = loaders . slice ( cssLoaderIndex + 1 )
52
52
const request = genRequest ( [
You can’t perform that action at this time.
0 commit comments