File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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) {
1313 const loaders = this . loaders . slice ( 1 ) // remove self
1414
1515 // 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 ) ) ) {
1717 return
1818 }
1919
@@ -45,8 +45,8 @@ module.exports.pitch = function (remainingRequest) {
4545
4646 // Inject style-post-loader before css-loader for scoped CSS and trimming
4747 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 ) {
5050 const afterLoaders = loaders . slice ( 0 , cssLoaderIndex + 1 )
5151 const beforeLoaders = loaders . slice ( cssLoaderIndex + 1 )
5252 const request = genRequest ( [
You can’t perform that action at this time.
0 commit comments