@@ -33,13 +33,16 @@ Array [
33
33
@import url(test.css) screen and print;
34
34
@import url(test.css) SCREEN AND PRINT;
35
35
@import url(test.css)screen and print;
36
+ @import url(test.css) screen and print;
36
37
@import url(test-media.css) screen and print;
37
38
@import url(test-other.css) (min-width: 100px);
38
39
@import url(http://example.com/style.css);
40
+ @import url(http://example.com/style.css);
39
41
@import url(http://example.com/style.css#hash);
40
42
@import url(http://example.com/style.css?#hash);
41
43
@import url(http://example.com/style.css?foo=bar#hash);
42
44
@import url(http://example.com/other-style.css) screen and print;
45
+ @import url(http://example.com/other-style.css) screen and print;
43
46
@import url(\\ "//example.com/style.css\\ ");
44
47
@import url(~package/test.css);
45
48
@import ;
@@ -48,6 +51,10 @@ Array [
48
51
@import url('http://') :root { }
49
52
@import url('query.css?foo=1& bar=1');
50
53
@import url('other-query.css?foo=1& bar=1#hash');
54
+ @import url('other-query.css?foo=1& bar=1#hash') screen and print;
55
+ @import url('https://fonts.googleapis.com/css?family=Roboto');
56
+ @import url('https://fonts.googleapis.com/css?family=Noto+Sans+TC');
57
+ @import url('https://fonts.googleapis.com/css?family=Noto+Sans+TC|Roboto');
51
58
52
59
.class {
53
60
a : b c d ;
@@ -68,7 +75,7 @@ exports[`import option false: module 1`] = `
68
75
69
76
70
77
// module
71
- exports.push([module.id, \\"@import url(test.css);\\\\n@import url('test.css');\\\\n@import url(\\\\\\"test.css\\\\\\");\\\\n@IMPORT url(test.css);\\\\n@import URL(test.css);\\\\n@import url(test.css );\\\\n@import url( test.css);\\\\n@import url( test.css );\\\\n@import url(\\\\n test.css\\\\n);\\\\n@import url();\\\\n@import url('');\\\\n@import url(\\\\\\"\\\\\\");\\\\n@import \\\\\\"test.css\\\\\\";\\\\n@import 'test.css';\\\\n@import '';\\\\n@import \\\\\\"\\\\\\";\\\\n@import \\\\\\" \\\\\\";\\\\n@import \\\\\\"\\\\n\\\\\\";\\\\n@import url();\\\\n@import url('');\\\\n@import url(\\\\\\"\\\\\\");\\\\n@import url(test.css) screen and print;\\\\n@import url(test.css) SCREEN AND PRINT;\\\\n@import url(test.css)screen and print;\\\\n@import url(test-media.css) screen and print;\\\\n@import url(test-other.css) (min-width: 100px);\\\\n@import url(http://example.com/style.css);\\\\n@import url(http://example.com/style.css#hash);\\\\n@import url(http://example.com/style.css?#hash);\\\\n@import url(http://example.com/style.css?foo=bar#hash);\\\\n@import url(http://example.com/other-style.css) screen and print;\\\\n@import url(\\\\\\"//example.com/style.css\\\\\\");\\\\n@import url(~package/test.css);\\\\n@import ;\\\\n@import foo-bar;\\\\n@import-normalize;\\\\n@import url('http://') :root {}\\\\n@import url('query.css?foo=1&bar=1');\\\\n@import url('other-query.css?foo=1&bar=1#hash');\\\\n\\\\n.class {\\\\n a: b c d;\\\\n}\\\\n\\\\n.foo {\\\\n @import 'path.css';\\\\n}\\\\n\\", \\"\\"]);
78
+ exports.push([module.id, \\"@import url(test.css);\\\\n@import url('test.css');\\\\n@import url(\\\\\\"test.css\\\\\\");\\\\n@IMPORT url(test.css);\\\\n@import URL(test.css);\\\\n@import url(test.css );\\\\n@import url( test.css);\\\\n@import url( test.css );\\\\n@import url(\\\\n test.css\\\\n);\\\\n@import url();\\\\n@import url('');\\\\n@import url(\\\\\\"\\\\\\");\\\\n@import \\\\\\"test.css\\\\\\";\\\\n@import 'test.css';\\\\n@import '';\\\\n@import \\\\\\"\\\\\\";\\\\n@import \\\\\\" \\\\\\";\\\\n@import \\\\\\"\\\\n\\\\\\";\\\\n@import url();\\\\n@import url('');\\\\n@import url(\\\\\\"\\\\\\");\\\\n@import url(test.css) screen and print;\\\\n@import url(test.css) SCREEN AND PRINT;\\\\n@import url(test.css)screen and print;\\\\n@import url(test.css) screen and print;\\\\n@import url(test-media.css) screen and print;\\\\n@import url(test-other.css) (min-width: 100px);\\\\n@import url(http://example.com/style.css);\\\\n@import url(http://example.com/style.css);\\\\n@import url(http://example.com/style.css#hash);\\\\n@import url(http://example.com/style.css?#hash);\\\\n@import url(http://example.com/style.css?foo=bar#hash);\\\\n@import url(http://example.com/other-style.css) screen and print;\\\\n@import url(http://example.com/other-style.css) screen and print;\\\\n@import url(\\\\\\"//example.com/style.css\\\\\\");\\\\n@import url(~package/test.css);\\\\n@import ;\\\\n@import foo-bar;\\\\n@import-normalize;\\\\n@import url('http://') :root {}\\\\n@import url('query.css?foo=1&bar=1');\\\\n@import url('other-query.css?foo=1&bar=1#hash');\\\\n@import url('other-query.css?foo=1&bar=1#hash') screen and print;\\\\n@import url('https://fonts.googleapis.com/css?family=Roboto');\\\\n@import url('https://fonts.googleapis.com/css?family=Noto+Sans+TC');\\\\n@import url('https://fonts.googleapis.com/css?family=Noto+Sans+TC|Roboto');\\\\n\\\\n.class {\\\\n a: b c d;\\\\n}\\\\n\\\\n.foo {\\\\n @import 'path.css';\\\\n}\\\\n\\", \\"\\"]);
72
79
73
80
// exports
74
81
"
@@ -96,34 +103,18 @@ Array [
96
103
",
97
104
"screen and print",
98
105
],
99
- Array [
100
- 4,
101
- ".test {
102
- a : a ;
103
- }
104
- ",
105
- "SCREEN AND PRINT",
106
- ],
107
106
Array [
108
107
5,
109
- ".test {
110
- a : a ;
111
- }
112
- ",
113
- "screen and print",
114
- ],
115
- Array [
116
- 7,
117
- ".test {
118
- a : b ;
108
+ "a {
109
+ b : b ;
119
110
}
120
111
",
121
112
"((min-width: 100px)) and (screen and print)",
122
113
],
123
114
Array [
124
- 6 ,
115
+ 4 ,
125
116
".test {
126
- c : d ;
117
+ c : c ;
127
118
}
128
119
",
129
120
"screen and print",
@@ -159,29 +150,52 @@ Array [
159
150
"",
160
151
],
161
152
Array [
162
- 8 ,
153
+ 6 ,
163
154
".test {
164
- a : b
155
+ d : d
165
156
}
166
157
",
167
158
"",
168
159
],
169
160
Array [
170
- 9 ,
161
+ 7 ,
171
162
".query {
172
- color : green ;
163
+ e : e ;
173
164
}
174
165
",
175
166
"",
176
167
],
177
168
Array [
178
- 10 ,
169
+ 8 ,
179
170
".other-query {
180
- color : green ;
171
+ f : f ;
181
172
}
182
173
",
183
174
"",
184
175
],
176
+ Array [
177
+ 9,
178
+ ".other-query {
179
+ f : f ;
180
+ }
181
+ ",
182
+ "screen and print",
183
+ ],
184
+ Array [
185
+ 1,
186
+ "@import url(https://fonts.googleapis.com/css?family=Roboto);",
187
+ "",
188
+ ],
189
+ Array [
190
+ 1,
191
+ "@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC);",
192
+ "",
193
+ ],
194
+ Array [
195
+ 1,
196
+ "@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC|Roboto);",
197
+ "",
198
+ ],
185
199
Array [
186
200
1,
187
201
"@import url();
@@ -218,8 +232,6 @@ exports[`import option true: module 1`] = `
218
232
// imports
219
233
exports.i(require(\\ "-!../../../index.js??ref--4-0!./test.css\\ "), \\ "\\ ");
220
234
exports.i(require(\\ "-!../../../index.js??ref--4-0!./test.css\\ "), \\ "screen and print\\ ");
221
- exports.i(require(\\ "-!../../../index.js??ref--4-0!./test.css\\ "), \\ "SCREEN AND PRINT\\ ");
222
- exports.i(require(\\ "-!../../../index.js??ref--4-0!./test.css\\ "), \\ "screen and print\\ ");
223
235
exports.i(require(\\ "-!../../../index.js??ref--4-0!./test-media.css\\ "), \\ "screen and print\\ ");
224
236
exports.i(require(\\ "-!../../../index.js??ref--4-0!./test-other.css\\ "), \\ "(min-width: 100px)\\ ");
225
237
exports.push([module.id, \\ "@import url(http://example.com/style.css);\\ ", \\ "\\ "]);
@@ -231,6 +243,10 @@ exports.push([module.id, \\"@import url(//example.com/style.css);\\", \\"\\"]);
231
243
exports.i(require(\\ "-!../../../index.js??ref--4-0!package/test.css\\ "), \\ "\\ ");
232
244
exports.i(require(\\ "-!../../../index.js??ref--4-0!./query.css?foo=1& bar=1\\ "), \\ "\\ ");
233
245
exports.i(require(\\ "-!../../../index.js??ref--4-0!./other-query.css?foo=1& bar=1#hash\\ "), \\ "\\ ");
246
+ exports.i(require(\\ "-!../../../index.js??ref--4-0!./other-query.css?foo=1& bar=1#hash\\ "), \\ "screen and print\\ ");
247
+ exports.push([module.id, \\ "@import url(https://fonts.googleapis.com/css?family=Roboto);\\ ", \\ "\\ "]);
248
+ exports.push([module.id, \\ "@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC);\\ ", \\ "\\ "]);
249
+ exports.push([module.id, \\ "@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC|Roboto);\\ ", \\ "\\ "]);
234
250
235
251
// module
236
252
exports.push([module.id, \\ "@import url();\\\\ n@import url('');\\\\ n@import url(\\\\\\ "\\\\\\ ");\\\\ n@import '';\\\\ n@import \\\\\\ "\\\\\\ ";\\\\ n@import \\\\\\ " \\\\\\ ";\\\\ n@import \\\\\\ "\\\\ n\\\\\\ ";\\\\ n@import url();\\\\ n@import url('');\\\\ n@import url(\\\\\\ "\\\\\\ ");\\\\ n@import ;\\\\ n@import foo-bar;\\\\ n@import-normalize;\\\\ n@import url('http://') :root { } \\\\ n\\\\ n.class { \\\\n a : b c d ;\\\\n } \\\\ n\\\\ n.foo { \\\\n @import ' path.css' ;\\\\n } \\\\ n\\ ", \\ "\\ "]);
@@ -285,14 +301,14 @@ Warning
285
301
"ModuleWarning: Module Warning (from \` replaced original path\` ):
286
302
Warning
287
303
288
- (37 :1) Unable to find uri in '@import '",
304
+ (40 :1) Unable to find uri in '@import '",
289
305
"ModuleWarning: Module Warning (from \` replaced original path\` ):
290
306
Warning
291
307
292
- (38 :1) Unable to find uri in '@import foo-bar'",
308
+ (41 :1) Unable to find uri in '@import foo-bar'",
293
309
"ModuleWarning: Module Warning (from \` replaced original path\` ):
294
310
Warning
295
311
296
- (40 :1) It looks like you didn't end your @import statement correctly. Child nodes are attached to it.",
312
+ (43 :1) It looks like you didn't end your @import statement correctly. Child nodes are attached to it.",
297
313
]
298
314
` ;
0 commit comments