@@ -2588,11 +2588,11 @@ exports[`"url" option should work with mini-css-extract-plugin: css 1`] = `
25882588}
25892589
25902590.class {
2591- background: green url( \\"/webpack/public/path/img img .png\\" ) xyz;
2591+ background: green url( \\"/webpack/public/path/img%20img .png\\" ) xyz;
25922592}
25932593
25942594.class {
2595- background: green url( \\"/webpack/public/path/img img .png\\" ) xyz;
2595+ background: green url( \\"/webpack/public/path/img%20img .png\\" ) xyz;
25962596}
25972597
25982598.class {
@@ -2632,11 +2632,11 @@ exports[`"url" option should work with mini-css-extract-plugin: css 1`] = `
26322632 url(/webpack/public/path/font.woff2) format('woff2'),
26332633 url(/webpack/public/path/font.eot) format('eot'),
26342634 url(/webpack/public/path/font.ttf) format('truetype'),
2635- url(\\"/webpack/public/path/font with spaces .eot\\") format(\\"embedded-opentype\\"),
2635+ url(\\"/webpack/public/path/font%20with%20spaces .eot\\") format(\\"embedded-opentype\\"),
26362636 url(/webpack/public/path/font.svg#svgFontName) format('svg'),
26372637 url(/webpack/public/path/font.woff2) format('woff2'),
26382638 url(/webpack/public/path/font.eot?#iefix) format('embedded-opentype'),
2639- url(\\"/webpack/public/path/font with spaces .eot?#iefix\\") format('embedded-opentype');
2639+ url(\\"/webpack/public/path/font%20with%20spaces .eot?#iefix\\") format('embedded-opentype');
26402640}
26412641
26422642@media (min-width: 500px) {
@@ -2785,7 +2785,7 @@ a {
27852785 background-image: -webkit-image-set(\\"/webpack/public/path/img1x.png\\" 1x, \\"/webpack/public/path/img2x.png\\" 2x);
27862786 background-image: image-set(\\"/webpack/public/path/img1x.png\\" 1x);
27872787 background-image: image-set(\\"/webpack/public/path/img1x.png\\" 1x, \\"/webpack/public/path/img2x.png\\" 2x);
2788- background-image: image-set(\\"/webpack/public/path/img img .png\\" 1x, \\"/webpack/public/path/img img .png\\" 2x);
2788+ background-image: image-set(\\"/webpack/public/path/img%20img .png\\" 1x, \\"/webpack/public/path/img%20img .png\\" 2x);
27892789 background-image: image-set(\\"/webpack/public/path/img1x.png\\" 1x, \\"/webpack/public/path/img2x.png\\" 2x),
27902790 image-set(\\"/webpack/public/path/img1x.png\\" 1x, \\"/webpack/public/path/img2x.png\\" 2x);
27912791 background-image: image-set(
@@ -2813,7 +2813,7 @@ a {
28132813 url(/webpack/public/path/img2x.png) 2x,
28142814 url(/webpack/public/path/img3x.png) 600dpi
28152815 );
2816- background-image: image-set(url(\\"/webpack/public/path/img img .png\\") 1x, url(\\"/webpack/public/path/img img .png\\") 2x);
2816+ background-image: image-set(url(\\"/webpack/public/path/img%20img .png\\") 1x, url(\\"/webpack/public/path/img%20img .png\\") 2x);
28172817
28182818 background-image: image-set(url(/webpack/public/path/img1x.png) 1x, \\"/webpack/public/path/img2x.png\\" 2x);
28192819}
@@ -2825,8 +2825,8 @@ a {
28252825 background: url(\\"/webpack/public/path/img'''img.png\\");
28262826 background: url(\\"/webpack/public/path/img(img.png\\");
28272827 background: url(\\"/webpack/public/path/img)img.png\\");
2828- background: url(\\"/webpack/public/path/img img .png\\");
2829- background: url(\\"/webpack/public/path/img'() img .png\\");
2828+ background: url(\\"/webpack/public/path/img%20img .png\\");
2829+ background: url(\\"/webpack/public/path/img'()%20img .png\\");
28302830
28312831 background-image: image-set(
28322832 /* Not allowed on windows */
@@ -2835,19 +2835,19 @@ a {
28352835 url(\\"/webpack/public/path/img'img.png\\") 3x,
28362836 url(\\"/webpack/public/path/img(img.png\\") 4x,
28372837 url(\\"/webpack/public/path/img)img.png\\") 5x,
2838- url(\\"/webpack/public/path/img img .png\\") 6x,
2839- url(\\"/webpack/public/path/img'() img .png\\") 7x
2838+ url(\\"/webpack/public/path/img%20img .png\\") 6x,
2839+ url(\\"/webpack/public/path/img'()%20img .png\\") 7x
28402840 );
28412841}
28422842
28432843.class-class-class {
28442844 background: url(\\"/webpack/public/path/img'''img.png\\");
2845- background: url(\\"/webpack/public/path/img'() img .png\\");
2845+ background: url(\\"/webpack/public/path/img'()%20img .png\\");
28462846 background: url(\\"/webpack/public/path/img'img.png\\");
28472847 background: url(\\"/webpack/public/path/img(img.png\\");
28482848 background: url(\\"/webpack/public/path/img)img.png\\");
2849- background: url(\\"/webpack/public/path/img img .png\\");
2850- background: url(\\"/webpack/public/path/img img .png\\");
2849+ background: url(\\"/webpack/public/path/img%20img .png\\");
2850+ background: url(\\"/webpack/public/path/img%20img .png\\");
28512851}
28522852
28532853/* Comment */
@@ -2861,17 +2861,17 @@ a {
28612861
28622862.other-test-case {
28632863 background: url(\\"/webpack/public/path/img'''img.png\\");
2864- background: url(\\"/webpack/public/path/img'() img .png\\");
2864+ background: url(\\"/webpack/public/path/img'()%20img .png\\");
28652865 background: url(\\"/webpack/public/path/img'img.png\\");
28662866 background: url(\\"/webpack/public/path/img(img.png\\");
28672867 background: url(\\"/webpack/public/path/img)img.png\\");
2868- background: url(\\"/webpack/public/path/img img .png\\");
2868+ background: url(\\"/webpack/public/path/img%20img .png\\");
28692869 background: url(\\"/webpack/public/path/img'''img.png\\");
2870- background: url(\\"/webpack/public/path/img'() img .png\\");
2870+ background: url(\\"/webpack/public/path/img'()%20img .png\\");
28712871 background: url(\\"/webpack/public/path/img'img.png\\");
28722872 background: url(\\"/webpack/public/path/img(img.png\\");
28732873 background: url(\\"/webpack/public/path/img)img.png\\");
2874- background: url(\\"/webpack/public/path/img img .png\\");
2874+ background: url(\\"/webpack/public/path/img%20img .png\\");
28752875}
28762876
28772877.qqq {
@@ -2880,16 +2880,16 @@ a {
28802880
28812881.www {
28822882 background: url(\\"/webpack/public/path/img'''img.png\\");
2883- background: url(\\"/webpack/public/path/img'() img .png\\");
2883+ background: url(\\"/webpack/public/path/img'()%20img .png\\");
28842884 background: url(\\"/webpack/public/path/img'img.png\\");
28852885 background: url(\\"/webpack/public/path/img(img.png\\");
28862886 background: url(\\"/webpack/public/path/img)img.png\\");
2887- background: url(\\"/webpack/public/path/img img .png\\");
2887+ background: url(\\"/webpack/public/path/img%20img .png\\");
28882888 background: url(/webpack/public/path/img.png);
28892889 background: url(/webpack/public/path/img.png);
28902890 background: url(\\"/webpack/public/path/img'img.png\\");
2891- background: url(\\"/webpack/public/path/img'() img .png\\");
2892- background: url(\\"/webpack/public/path/img'() img .png\\");
2891+ background: url(\\"/webpack/public/path/img'()%20img .png\\");
2892+ background: url(\\"/webpack/public/path/img'()%20img .png\\");
28932893}
28942894
28952895.class {
@@ -2977,7 +2977,73 @@ exports[`"url" option should work with mini-css-extract-plugin: module 1`] = `
29772977export {};"
29782978`;
29792979
2980- exports[`"url" option should work with mini-css-extract-plugin: warnings 1`] = `Array []`;
2980+ exports[`"url" option should work with mini-css-extract-plugin: warnings 1`] = `
2981+ Array [
2982+ "ModuleWarning: Module Warning (from \`replaced original path\`):
2983+ Warning
2984+
2985+ (120:3) Unable to find uri in 'background: green url() xyz'",
2986+ "ModuleWarning: Module Warning (from \`replaced original path\`):
2987+ Warning
2988+
2989+ (124:3) Unable to find uri in 'background: green url('') xyz'",
2990+ "ModuleWarning: Module Warning (from \`replaced original path\`):
2991+ Warning
2992+
2993+ (128:3) Unable to find uri in 'background: green url(\\"\\") xyz'",
2994+ "ModuleWarning: Module Warning (from \`replaced original path\`):
2995+ Warning
2996+
2997+ (132:3) Unable to find uri in 'background: green url(' ') xyz'",
2998+ "ModuleWarning: Module Warning (from \`replaced original path\`):
2999+ Warning
3000+
3001+ (136:3) Unable to find uri in 'background: green url(
3002+ ) xyz'",
3003+ "ModuleWarning: Module Warning (from \`replaced original path\`):
3004+ Warning
3005+
3006+ (216:3) Unable to find uri in 'background-image: -webkit-image-set('')'",
3007+ "ModuleWarning: Module Warning (from \`replaced original path\`):
3008+ Warning
3009+
3010+ (218:3) Unable to find uri in 'background-image: image-set('')'",
3011+ "ModuleWarning: Module Warning (from \`replaced original path\`):
3012+ Warning
3013+
3014+ (219:3) Unable to find uri in 'background-image: image-set(\\"\\")'",
3015+ "ModuleWarning: Module Warning (from \`replaced original path\`):
3016+ Warning
3017+
3018+ (220:3) Unable to find uri in 'background-image: image-set(\\"\\" 1x)'",
3019+ "ModuleWarning: Module Warning (from \`replaced original path\`):
3020+ Warning
3021+
3022+ (221:3) Unable to find uri in 'background-image: image-set(url())'",
3023+ "ModuleWarning: Module Warning (from \`replaced original path\`):
3024+ Warning
3025+
3026+ (222:3) Unable to find uri in 'background-image: image-set(
3027+ url()
3028+ )'",
3029+ "ModuleWarning: Module Warning (from \`replaced original path\`):
3030+ Warning
3031+
3032+ (225:3) Unable to find uri in 'background-image: image-set(URL())'",
3033+ "ModuleWarning: Module Warning (from \`replaced original path\`):
3034+ Warning
3035+
3036+ (226:3) Unable to find uri in 'background-image: image-set(url(''))'",
3037+ "ModuleWarning: Module Warning (from \`replaced original path\`):
3038+ Warning
3039+
3040+ (227:3) Unable to find uri in 'background-image: image-set(url(\\"\\"))'",
3041+ "ModuleWarning: Module Warning (from \`replaced original path\`):
3042+ Warning
3043+
3044+ (228:3) Unable to find uri in 'background-image: image-set(url('') 1x)'",
3045+ ]
3046+ `;
29813047
29823048exports[`"url" option should work with the 'asset' type of asset modules: errors 1`] = `Array []`;
29833049
0 commit comments