Skip to content

Commit 3007493

Browse files
feat: sources import with new url
1 parent ded616f commit 3007493

File tree

6 files changed

+663
-663
lines changed

6 files changed

+663
-663
lines changed

test/__snapshots__/esModule-option.test.js.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Array [
3636
3737
.class {
3838
color: red;
39-
background: url(/webpack/public/path/img.png);
39+
background: url(replaced_file_protocol_/webpack/public/path/img.png);
4040
}
4141
",
4242
"",
@@ -128,7 +128,7 @@ Array [
128128
129129
.class {
130130
color: red;
131-
background: url(/webpack/public/path/img.png);
131+
background: url(replaced_file_protocol_/webpack/public/path/img.png);
132132
}
133133
",
134134
"",
@@ -177,7 +177,7 @@ Array [
177177
178178
.oFwPvuANP2XsfGir7HPVz {
179179
color: red;
180-
background: url(/webpack/public/path/img.png);
180+
background: url(replaced_file_protocol_/webpack/public/path/img.png);
181181
}
182182
",
183183
"",
@@ -226,7 +226,7 @@ Array [
226226
227227
.oFwPvuANP2XsfGir7HPVz {
228228
color: red;
229-
background: url(/webpack/public/path/img.png);
229+
background: url(replaced_file_protocol_/webpack/public/path/img.png);
230230
}
231231
",
232232
"",
@@ -272,7 +272,7 @@ Array [
272272
273273
.class {
274274
color: red;
275-
background: url(/webpack/public/path/img.png);
275+
background: url(replaced_file_protocol_/webpack/public/path/img.png);
276276
}
277277
",
278278
"",

test/__snapshots__/import-option.test.js.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ Array [
618618
Array [
619619
"../../src/index.js??ruleSet[1].rules[0].use[0]!./import/url.css",
620620
".background-imported {
621-
background: url(/webpack/public/path/img.png);
621+
background: url(replaced_file_protocol_/webpack/public/path/img.png);
622622
}
623623
",
624624
"",
@@ -817,7 +817,7 @@ Array [
817817
}
818818
819819
.background {
820-
background: url(/webpack/public/path/img.png);
820+
background: url(replaced_file_protocol_/webpack/public/path/img.png);
821821
}
822822
823823
@import url(./test.css);
@@ -1345,7 +1345,7 @@ Array [
13451345
Array [
13461346
"../../src/index.js??ruleSet[1].rules[0].use[0]!./import/url.css",
13471347
".background-imported {
1348-
background: url(/webpack/public/path/img.png);
1348+
background: url(replaced_file_protocol_/webpack/public/path/img.png);
13491349
}
13501350
",
13511351
"",
@@ -1766,7 +1766,7 @@ Array [
17661766
}
17671767
17681768
.background {
1769-
background: url(/webpack/public/path/img.png);
1769+
background: url(replaced_file_protocol_/webpack/public/path/img.png);
17701770
}
17711771
@import nourl(test.css);
17721772
@import '\\\\
@@ -1979,7 +1979,7 @@ Array [
19791979
@import url('./url.css');
19801980
19811981
.background {
1982-
background: url(/webpack/public/path/img.png);
1982+
background: url(replaced_file_protocol_/webpack/public/path/img.png);
19831983
}
19841984
19851985
@import url(./test.css);
@@ -2465,7 +2465,7 @@ Array [
24652465
Array [
24662466
"../../src/index.js??ruleSet[1].rules[0].use[0]!./import/url.css",
24672467
".background-imported {
2468-
background: url(/webpack/public/path/img.png);
2468+
background: url(replaced_file_protocol_/webpack/public/path/img.png);
24692469
}
24702470
",
24712471
"",
@@ -2886,7 +2886,7 @@ Array [
28862886
}
28872887
28882888
.background {
2889-
background: url(/webpack/public/path/img.png);
2889+
background: url(replaced_file_protocol_/webpack/public/path/img.png);
28902890
}
28912891
@import nourl(test.css);
28922892
@import '\\\\

0 commit comments

Comments
 (0)