File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ module.exports.pitch = function (remainingRequest) {
31
31
32
32
// Inject style-post-loader before css-loader for scoped CSS and trimming
33
33
if ( query . type === `style` ) {
34
- const cssLoaderIndex = loaders . findIndex ( l => / \/ c s s - l o a d e r / . test ( l . request ) )
34
+ const cssLoaderIndex = loaders . findIndex ( l => / ( \/ | \\ ) c s s - l o a d e r / . test ( l . request ) )
35
35
if ( cssLoaderIndex ) {
36
36
const afterLoaders = loaders . slice ( 0 , cssLoaderIndex + 1 ) . map ( toLoaderString )
37
37
const beforeLoaders = loaders . slice ( cssLoaderIndex + 1 ) . map ( toLoaderString )
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ module.exports = class VueLoaderPlugin {
27
27
const normalizedVueUse = normalizedVueRule . use . map ( cleanUse )
28
28
// get vue-loader options
29
29
const vueLoaderUseIndex = normalizedVueUse . findIndex ( u => {
30
- return / ^ v u e - l o a d e r | \/ v u e - l o a d e r / . test ( u . loader )
30
+ return / ^ v u e - l o a d e r | ( \/ | \\ ) v u e - l o a d e r / . test ( u . loader )
31
31
} )
32
32
33
33
if ( vueLoaderUseIndex < 0 ) {
You can’t perform that action at this time.
0 commit comments