Skip to content

Commit 8d8531c

Browse files
test: added (webpack-contrib#1329)
1 parent 946a5a1 commit 8d8531c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3418,15 +3418,15 @@ Array [
34183418
}
34193419

34203420
@font-face {
3421-
src: url(data:font/woff;base64,) format('woff'),
3422-
url(data:font/woff2;base64,) format('woff2'),
3423-
url(data:application/vnd.ms-fontobject;base64,) format('eot'),
3424-
url(data:font/ttf;base64,) format('truetype'),
3425-
url(data:application/vnd.ms-fontobject;base64,) format(\\"embedded-opentype\\"),
3426-
url(data:image/svg+xml;base64,#svgFontName) format('svg'),
3427-
url(data:font/woff2;base64,) format('woff2'),
3428-
url(data:application/vnd.ms-fontobject;base64,?#iefix) format('embedded-opentype'),
3429-
url(data:application/vnd.ms-fontobject;base64,?#iefix) format('embedded-opentype');
3421+
src: url(replaced_file_protocol_/webpack/public/path/font.woff) format('woff'),
3422+
url(replaced_file_protocol_/webpack/public/path/font.woff2) format('woff2'),
3423+
url(replaced_file_protocol_/webpack/public/path/font.eot) format('eot'),
3424+
url(replaced_file_protocol_/webpack/public/path/font.ttf) format('truetype'),
3425+
url(\\"replaced_file_protocol_/webpack/public/path/font%20with%20spaces.eot\\") format(\\"embedded-opentype\\"),
3426+
url(replaced_file_protocol_/webpack/public/path/font.svg#svgFontName) format('svg'),
3427+
url(replaced_file_protocol_/webpack/public/path/font.woff2) format('woff2'),
3428+
url(replaced_file_protocol_/webpack/public/path/font.eot?#iefix) format('embedded-opentype'),
3429+
url(\\"replaced_file_protocol_/webpack/public/path/font%20with%20spaces.eot?#iefix\\") format('embedded-opentype');
34303430
}
34313431

34323432
@media (min-width: 500px) {
@@ -3728,7 +3728,7 @@ a {
37283728
/* We need to use \`resourceQuery: /inline/\` */
37293729
/* Hard to test on webpack v4 */
37303730
.qqq {
3731-
background: url(data:image/png;base64,bW9kdWxlLmV4cG9ydHMgPSBfX3dlYnBhY2tfcHVibGljX3BhdGhfXyArICJjdXN0b20taW1nLnBuZyI=)
3731+
background: url(replaced_file_protocol_/webpack/public/path/img-single.png)
37323732
}
37333733
",
37343734
"",

test/url-option.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ describe('"url" option', () => {
204204
},
205205
{
206206
test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/i,
207-
type: "asset",
207+
type: "asset/resource",
208208
generator: {
209209
filename: "[name][ext]",
210210
},

0 commit comments

Comments
 (0)