File tree Expand file tree Collapse file tree 6 files changed +29
-1
lines changed
test/cases/match-resource-url Expand file tree Collapse file tree 6 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ function pitch(request) {
361361 }
362362
363363 this . importModule (
364- `${ this . _module . matchResource || this . resourcePath } .webpack[javascript/auto]!=!!!${ request } ` ,
364+ `${ this . _module && this . _module . matchResource ? this . _module . matchResource : this . resourcePath } .webpack[javascript/auto]!=!!!${ request } ` ,
365365 {
366366 layer : options . layer ,
367367 publicPath : /** @type {string } */ ( publicPathForExtract ) ,
Original file line number Diff line number Diff line change 22 background-image : url (static/icon.svg);
33}
44
5+ body {
6+ background-image : url (./ icon.svg);
7+ }
8+
9+ body {
10+ background-image : url (./ icon.svg);
11+ }
12+
Original file line number Diff line number Diff line change 11import "./virtual.css!=!./source.txt" ;
2+ import "./virtual.css?=query!=!./source.txt" ;
3+ import "./other.css?=query" ;
Original file line number Diff line number Diff line change 1+ body {
2+ background-image : url (./ icon.svg);
3+ }
Original file line number Diff line number Diff line change @@ -6,8 +6,22 @@ module.exports = {
66 rules : [
77 {
88 test : / \. c s s $ / ,
9+ resourceQuery : { not : / q u e r y / } ,
910 use : [ Self . loader , "css-loader" ] ,
1011 } ,
12+ {
13+ test : / \. c s s $ / ,
14+ resourceQuery : / q u e r y / ,
15+ use : [
16+ Self . loader ,
17+ {
18+ loader : "css-loader" ,
19+ options : {
20+ url : false ,
21+ } ,
22+ } ,
23+ ] ,
24+ } ,
1125 {
1226 test : / \. s v g $ / ,
1327 issuer : / \. c s s $ / ,
You can’t perform that action at this time.
0 commit comments