From 82cb9397bc60141ab7388bdb8f821c827d1808d5 Mon Sep 17 00:00:00 2001 From: eric wang Date: Wed, 22 Jan 2020 16:29:44 +1100 Subject: [PATCH 1/3] fix: deduplicate css module for @import --- src/utils.js | 6 ++--- .../__snapshots__/modules-option.test.js.snap | 22 ++++++++++++++++++- test/fixtures/modules/dedupe/colors/black.css | 1 + test/fixtures/modules/dedupe/colors/color.css | 2 ++ test/fixtures/modules/dedupe/colors/white.css | 1 + test/fixtures/modules/dedupe/source.css | 3 +++ 6 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 test/fixtures/modules/dedupe/colors/black.css create mode 100644 test/fixtures/modules/dedupe/colors/color.css create mode 100644 test/fixtures/modules/dedupe/colors/white.css diff --git a/src/utils.js b/src/utils.js index 9fecfcca..daf7c074 100644 --- a/src/utils.js +++ b/src/utils.js @@ -240,13 +240,13 @@ function getImportCode( case '@import': { const { url, media } = item; - const preparedMedia = media ? `, ${JSON.stringify(media)}` : ''; + const preparedMedia = media ? `, ${JSON.stringify(media)}` : ', ""'; if (!isUrlRequest(url)) { codeItems.push( `exports.push([module.id, ${JSON.stringify( `@import url(${url});` - )}${preparedMedia}]);` + )}${preparedMedia}], true);` ); return; @@ -275,7 +275,7 @@ function getImportCode( atRuleImportNames.set(url, importName); } - codeItems.push(`exports.i(${importName}${preparedMedia});`); + codeItems.push(`exports.i(${importName}${preparedMedia}, true);`); } break; case 'url': diff --git a/test/__snapshots__/modules-option.test.js.snap b/test/__snapshots__/modules-option.test.js.snap index b9bd2fb6..78f29864 100644 --- a/test/__snapshots__/modules-option.test.js.snap +++ b/test/__snapshots__/modules-option.test.js.snap @@ -416,9 +416,13 @@ exports[`"modules" option should dedupe same modules in one module (issue #1037) var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../../src/runtime/api.js\\"); var ___CSS_LOADER_ICSS_IMPORT_0___ = require(\\"-!../../../../src/index.js??[ident]!./buttons/primary-button.css\\"); var ___CSS_LOADER_ICSS_IMPORT_1___ = require(\\"-!../../../../src/index.js??[ident]!./buttons/secondary-button.css\\"); +var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../../src/index.js??[ident]!./colors/black.css\\"); +var ___CSS_LOADER_AT_RULE_IMPORT_1___ = require(\\"-!../../../../src/index.js??[ident]!./colors/white.css\\"); exports = ___CSS_LOADER_API_IMPORT___(false); exports.i(___CSS_LOADER_ICSS_IMPORT_0___, \\"\\", true); exports.i(___CSS_LOADER_ICSS_IMPORT_1___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_1___, \\"\\", true); // Module exports.push([module.id, \\".EzyG7UwnL9VTWJMm1zvyL\\\\n{\\\\n}\\\\n\\\\n.vO79o4trei2_Dt8Bi8s5W\\\\n{\\\\n}\\\\n\\", \\"\\"]); // Exports @@ -463,6 +467,22 @@ Array [ ", "", ], + Array [ + "../../src/index.js?[ident]!./modules/dedupe/colors/color.css", + " +", + "", + ], + Array [ + "../../src/index.js?[ident]!./modules/dedupe/colors/black.css", + "", + "", + ], + Array [ + "../../src/index.js?[ident]!./modules/dedupe/colors/white.css", + "", + "", + ], Array [ "./modules/dedupe/source.css", ".EzyG7UwnL9VTWJMm1zvyL @@ -941,7 +961,7 @@ exports.i(___CSS_LOADER_ICSS_IMPORT_3___, \\"\\", true); exports.i(___CSS_LOADER_ICSS_IMPORT_4___, \\"\\", true); exports.i(___CSS_LOADER_ICSS_IMPORT_5___, \\"\\", true); exports.i(___CSS_LOADER_ICSS_IMPORT_6___, \\"\\", true); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"(min-width: 100px)\\"); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"(min-width: 100px)\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); // Module exports.push([module.id, \\".fSErEFKw3e7Iv0EmVr4Ii {\\\\n color: \\" + ___CSS_LOADER_ICSS_IMPORT_0___.locals[\\"v-def\\"] + \\";\\\\n}\\\\n\\\\n._1NrOxbibeQ5qcRoPL7kDtu {\\\\n color: blue;\\\\n}\\\\n\\\\n.djNAVB7y500wM1pkOwuGn {\\\\n display: block;\\\\n}\\\\n\\\\n._291GtMV2HIwa4Iis74myBh {\\\\n width: \\" + ___CSS_LOADER_ICSS_IMPORT_1___.locals[\\"v-something\\"] + \\";\\\\n}\\\\n\\\\n._2KPSOif5_L54Ue252-4SMZ {\\\\n color: \\" + ___CSS_LOADER_ICSS_IMPORT_0___.locals[\\"v-other\\"] + \\";\\\\n}\\\\n\\\\n._1ZuFusdyp6cE2KJ9RECux1 {\\\\n prop: \\" + ___CSS_LOADER_ICSS_IMPORT_0___.locals[\\"v-def\\"] + \\";\\\\n duplicate: \\" + ___CSS_LOADER_ICSS_IMPORT_0___.locals[\\"v-other\\"] + \\";\\\\n}\\\\n\\\\n.dMcylihD3G3oGCNWDsAa3 {\\\\n color: red;\\\\n}\\\\n\\\\n._2t9qA9qE4OH2A3DVwUtOFP {\\\\n color: yellow;\\\\n}\\\\n\\\\n._1XQGy4UOqsVVHSULdn-uc6 {\\\\n color: gray;\\\\n}\\\\n\\\\n._3oZRfl5v6W4ji2oerfYhpL {\\\\n color: gray;\\\\n}\\\\n\\\\n._1KLfOsDDmt6EGUIDKukOvV {\\\\n color: gainsboro;\\\\n}\\\\n\\\\n.PxB1r-csu3e3lUOZiD69t {\\\\n color: #BF4040;\\\\n}\\\\n\\\\n._2nUmv-YIlxvzza9j2rJQjJ {\\\\n color: black;\\\\n}\\\\n\\\\n@media (min-width: 960px) {\\\\n ._21OP3aGLw7Si4lLuiK3vhf {\\\\n padding: 0 20px;\\\\n }\\\\n}\\\\n\\\\n.\\" + ___CSS_LOADER_ICSS_IMPORT_0___.locals[\\"s-white\\"] + \\" {\\\\n color: white;\\\\n}\\\\n\\\\n@media \\" + ___CSS_LOADER_ICSS_IMPORT_0___.locals[\\"m-small\\"] + \\" {\\\\n ._21OP3aGLw7Si4lLuiK3vhf {\\\\n padding: 20px 20px;\\\\n }\\\\n}\\\\n@value v-comment: /* comment */;\\\\n\\\\n.zbowt65f4EBNzWh_uiPv0 {\\\\n v-ident: validIdent;\\\\n v-pre-defined-ident: left;\\\\n v-string: 'content';\\\\n v-string-1: '';\\\\n v-url: url(https://www.exammple.com/images/my-background.png);\\\\n v-url-1: url('https://www.exammple.com/images/my-background.png');\\\\n v-url-2: url(\\\\\\"https://www.exammple.com/images/my-background.png\\\\\\");\\\\n v-integer: 100;\\\\n v-integer-1: -100;\\\\n v-integer-2: +100;\\\\n v-number: .60;\\\\n v-number-1: -456.8;\\\\n v-number-2: -3.4e-2;\\\\n v-dimension: 12px;\\\\n v-percentage: 100%;\\\\n v-hex: #fff;\\\\n v-comment: v-comment 10px v-comment;\\\\n v-function: rgb(0,0,0);\\\\n v-unicode-range: U+0025-00FF;\\\\n mutliple: #fff .60 100%;\\\\n}\\\\n\\\\n\\\\na {\\\\n content: 'content';\\\\n}\\\\n\\\\n@supports (content: 'content') {\\\\n a {\\\\n content: 'content';\\\\n }\\\\n}\\\\n\\\\n[class~='content'] {\\\\n color:green;\\\\n}\\\\n\\\\n._3yApLlXpoidfnd3JfO_WEf {\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); diff --git a/test/fixtures/modules/dedupe/colors/black.css b/test/fixtures/modules/dedupe/colors/black.css new file mode 100644 index 00000000..15b1cbd5 --- /dev/null +++ b/test/fixtures/modules/dedupe/colors/black.css @@ -0,0 +1 @@ +@value myBlack from './color.css'; \ No newline at end of file diff --git a/test/fixtures/modules/dedupe/colors/color.css b/test/fixtures/modules/dedupe/colors/color.css new file mode 100644 index 00000000..1e32b68a --- /dev/null +++ b/test/fixtures/modules/dedupe/colors/color.css @@ -0,0 +1,2 @@ +@value myBlack: #000000; +@value myWhite: #ffffff; diff --git a/test/fixtures/modules/dedupe/colors/white.css b/test/fixtures/modules/dedupe/colors/white.css new file mode 100644 index 00000000..19d57c4f --- /dev/null +++ b/test/fixtures/modules/dedupe/colors/white.css @@ -0,0 +1 @@ +@value myWhite from './color.css'; \ No newline at end of file diff --git a/test/fixtures/modules/dedupe/source.css b/test/fixtures/modules/dedupe/source.css index 1abaadd3..2223632b 100644 --- a/test/fixtures/modules/dedupe/source.css +++ b/test/fixtures/modules/dedupe/source.css @@ -1,3 +1,6 @@ +@import './colors/black.css'; +@import './colors/white.css'; + .nextButton { composes:primaryButton from './buttons/primary-button.css'; From e19a0bb0d70a66e4ca46bd19b006c0ff87dc76cd Mon Sep 17 00:00:00 2001 From: eric wang Date: Wed, 22 Jan 2020 16:31:36 +1100 Subject: [PATCH 2/3] fix: add eol --- test/fixtures/modules/dedupe/colors/black.css | 2 +- test/fixtures/modules/dedupe/colors/white.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fixtures/modules/dedupe/colors/black.css b/test/fixtures/modules/dedupe/colors/black.css index 15b1cbd5..3509c8b9 100644 --- a/test/fixtures/modules/dedupe/colors/black.css +++ b/test/fixtures/modules/dedupe/colors/black.css @@ -1 +1 @@ -@value myBlack from './color.css'; \ No newline at end of file +@value myBlack from './color.css'; diff --git a/test/fixtures/modules/dedupe/colors/white.css b/test/fixtures/modules/dedupe/colors/white.css index 19d57c4f..9c861499 100644 --- a/test/fixtures/modules/dedupe/colors/white.css +++ b/test/fixtures/modules/dedupe/colors/white.css @@ -1 +1 @@ -@value myWhite from './color.css'; \ No newline at end of file +@value myWhite from './color.css'; From e9770ffa5a92f538fa7465197b792b99be4a70cd Mon Sep 17 00:00:00 2001 From: eric wang Date: Wed, 22 Jan 2020 16:43:17 +1100 Subject: [PATCH 3/3] fix: update snapshot --- src/utils.js | 2 +- .../esModule-option.test.js.snap | 12 +- test/__snapshots__/import-option.test.js.snap | 1064 ++++------------- .../importLoaders-option.test.js.snap | 10 +- test/__snapshots__/loader.test.js.snap | 6 +- .../__snapshots__/modules-option.test.js.snap | 6 +- .../sourceMap-option.test.js.snap | 22 +- test/__snapshots__/url-option.test.js.snap | 8 +- 8 files changed, 265 insertions(+), 865 deletions(-) diff --git a/src/utils.js b/src/utils.js index daf7c074..d0aa76d1 100644 --- a/src/utils.js +++ b/src/utils.js @@ -246,7 +246,7 @@ function getImportCode( codeItems.push( `exports.push([module.id, ${JSON.stringify( `@import url(${url});` - )}${preparedMedia}], true);` + )}${preparedMedia}, true]);` ); return; diff --git a/test/__snapshots__/esModule-option.test.js.snap b/test/__snapshots__/esModule-option.test.js.snap index 9aca855e..281a3ecc 100644 --- a/test/__snapshots__/esModule-option.test.js.snap +++ b/test/__snapshots__/esModule-option.test.js.snap @@ -9,7 +9,7 @@ var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ide var ___CSS_LOADER_GET_URL_IMPORT___ = require(\\"../../../src/runtime/getUrl.js\\"); var ___CSS_LOADER_URL_IMPORT_0___ = require(\\"./img.png\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); // Module exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n.class {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); @@ -55,7 +55,7 @@ var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ide var ___CSS_LOADER_GET_URL_IMPORT___ = require(\\"../../../src/runtime/getUrl.js\\"); var ___CSS_LOADER_URL_IMPORT_0___ = require(\\"./img.png\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); // Module exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n.class {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); @@ -101,7 +101,7 @@ import ___CSS_LOADER_AT_RULE_IMPORT_0___ from \\"-!../../../src/index.js??[ident import ___CSS_LOADER_GET_URL_IMPORT___ from \\"../../../src/runtime/getUrl.js\\"; import ___CSS_LOADER_URL_IMPORT_0___ from \\"./img.png\\"; var exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); // Module exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n.class {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); @@ -147,7 +147,7 @@ import ___CSS_LOADER_AT_RULE_IMPORT_0___ from \\"-!../../../src/index.js??[ident import ___CSS_LOADER_GET_URL_IMPORT___ from \\"../../../src/runtime/getUrl.js\\"; import ___CSS_LOADER_URL_IMPORT_0___ from \\"./img.png\\"; var exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); // Module exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n._3S58jeCkC6SOPhVLbU-Bwn {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); @@ -196,7 +196,7 @@ import ___CSS_LOADER_AT_RULE_IMPORT_0___ from \\"-!../../../src/index.js??[ident import ___CSS_LOADER_GET_URL_IMPORT___ from \\"../../../src/runtime/getUrl.js\\"; import ___CSS_LOADER_URL_IMPORT_0___ from \\"./img.png\\"; var exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); // Module exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n._3S58jeCkC6SOPhVLbU-Bwn {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); @@ -245,7 +245,7 @@ import ___CSS_LOADER_AT_RULE_IMPORT_0___ from \\"-!../../../src/index.js??[ident import ___CSS_LOADER_GET_URL_IMPORT___ from \\"../../../src/runtime/getUrl.js\\"; import ___CSS_LOADER_URL_IMPORT_0___ from \\"./img.png\\"; var exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); // Module exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n.class {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); diff --git a/test/__snapshots__/import-option.test.js.snap b/test/__snapshots__/import-option.test.js.snap index 2cd39431..dfab7403 100644 --- a/test/__snapshots__/import-option.test.js.snap +++ b/test/__snapshots__/import-option.test.js.snap @@ -10,17 +10,17 @@ var ___CSS_LOADER_AT_RULE_IMPORT_1___ = require(\\"-!../../../src/index.js??[ide var ___CSS_LOADER_AT_RULE_IMPORT_2___ = require(\\"-!../../../src/index.js??[ident]!./order-3.css\\"); var ___CSS_LOADER_AT_RULE_IMPORT_3___ = require(\\"-!../../../src/index.js??[ident]!./order-4.css\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.push([module.id, \\"@import url(http://example.com/style.css);\\"]); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_1___); -exports.push([module.id, \\"@import url(http://example.com/style.css);\\"]); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.push([module.id, \\"@import url(http://example.com/style.css);\\"]); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_1___, \\"screen and (min-width: 2000px)\\"); -exports.push([module.id, \\"@import url(http://example.com/style.css);\\"]); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_2___); -exports.push([module.id, \\"@import url(http://example.com/style.css);\\"]); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_3___, \\"screen\\"); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.push([module.id, \\"@import url(http://example.com/style.css);\\", \\"\\", true]); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_1___, \\"\\", true); +exports.push([module.id, \\"@import url(http://example.com/style.css);\\", \\"\\", true]); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.push([module.id, \\"@import url(http://example.com/style.css);\\", \\"\\", true]); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_1___, \\"screen and (min-width: 2000px)\\", true); +exports.push([module.id, \\"@import url(http://example.com/style.css);\\", \\"\\", true]); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_2___, \\"\\", true); +exports.push([module.id, \\"@import url(http://example.com/style.css);\\", \\"\\", true]); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_3___, \\"screen\\", true); // Module exports.push([module.id, \\"div {\\\\n width: 100%;\\\\n height: 200px;\\\\n}\\\\n\\", \\"\\"]); // Exports @@ -41,6 +41,8 @@ Array [ Array [ "./import/order.css", "@import url(http://example.com/style.css);", + "", + true, ], Array [ "../../src/index.js?[ident]!./import/order-2.css", @@ -53,30 +55,20 @@ Array [ Array [ "./import/order.css", "@import url(http://example.com/style.css);", - ], - Array [ - "../../src/index.js?[ident]!./import/order-1.css", - ".order-1 { - color: red; -} -", "", + true, ], Array [ "./import/order.css", "@import url(http://example.com/style.css);", - ], - Array [ - "../../src/index.js?[ident]!./import/order-2.css", - ".order-2 { - color: red; -} -", - "screen and (min-width: 2000px)", + "", + true, ], Array [ "./import/order.css", "@import url(http://example.com/style.css);", + "", + true, ], Array [ "../../src/index.js?[ident]!./import/order-3-1.css", @@ -97,6 +89,8 @@ Array [ Array [ "./import/order.css", "@import url(http://example.com/style.css);", + "", + true, ], Array [ "../../src/index.js?[ident]!./import/order-4-1.css", @@ -170,31 +164,31 @@ var ___CSS_LOADER_AT_RULE_IMPORT_9___ = require(\\"-!../../../src/index.js??[ide var ___CSS_LOADER_GET_URL_IMPORT___ = require(\\"../../../src/runtime/getUrl.js\\"); var ___CSS_LOADER_URL_IMPORT_0___ = require(\\"./img.png\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation:landscape)\\"); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_1___, \\"(min-width: 100px)\\"); -exports.push([module.id, \\"@import url(http://example.com/style.css);\\"]); -exports.push([module.id, \\"@import url(http://example.com/style.css);\\"]); -exports.push([module.id, \\"@import url(http://example.com/style.css#hash);\\"]); -exports.push([module.id, \\"@import url(http://example.com/style.css?#hash);\\"]); -exports.push([module.id, \\"@import url(http://example.com/style.css?foo=bar#hash);\\"]); -exports.push([module.id, \\"@import url(http://example.com/other-style.css);\\", \\"screen and (orientation:landscape)\\"]); -exports.push([module.id, \\"@import url(http://example.com/other-style.css);\\", \\"screen and (orientation:landscape)\\"]); -exports.push([module.id, \\"@import url(//example.com/style.css);\\"]); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_2___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_3___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_3___, \\"screen and (orientation:landscape)\\"); -exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Roboto);\\"]); -exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC);\\"]); -exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC|Roboto);\\"]); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_4___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_5___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_6___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_7___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_8___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_9___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_9___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_9___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_9___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation:landscape)\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_1___, \\"(min-width: 100px)\\", true); +exports.push([module.id, \\"@import url(http://example.com/style.css);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/style.css);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/style.css#hash);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/style.css?#hash);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/style.css?foo=bar#hash);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/other-style.css);\\", \\"screen and (orientation:landscape)\\", true]); +exports.push([module.id, \\"@import url(http://example.com/other-style.css);\\", \\"screen and (orientation:landscape)\\", true]); +exports.push([module.id, \\"@import url(//example.com/style.css);\\", \\"\\", true]); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_2___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_3___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_3___, \\"screen and (orientation:landscape)\\", true); +exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Roboto);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC|Roboto);\\", \\"\\", true]); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_4___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_5___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_6___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_7___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_8___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_9___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_9___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_9___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_9___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); // Module 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 (orientation:landscape);\\\\n@import url(test.css) SCREEN AND (ORIENTATION: LANDSCAPE);\\\\n@import url(test.css)screen and (orientation:landscape);\\\\n@import url(test.css) screen and (orientation:landscape);\\\\n@import url(~package/test.css);\\\\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\\\\n.background {\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\\\n@import url(./test.css);\\\\n\\\\n@import './te\\\\\\\\\\\\nst.css';\\\\n@import './te\\\\\\\\\\\\n\\\\\\\\\\\\n\\\\\\\\\\\\nst.css';\\\\n@import url('./te\\\\\\\\\\\\nst.css');\\\\n@import url('./te\\\\\\\\\\\\n\\\\\\\\\\\\n\\\\\\\\\\\\nst.css');\\\\n@import './test test.css';\\\\n@import url('./test test.css');\\\\n@import './test\\\\\\\\ test.css';\\\\n@import url('./test\\\\\\\\ test.css');\\\\n@import './test%20test.css';\\\\n@import url('./test%20test.css');\\\\n@import './\\\\\\\\74\\\\\\\\65\\\\\\\\73\\\\\\\\74.css';\\\\n@import url('./\\\\\\\\74\\\\\\\\65\\\\\\\\73\\\\\\\\74.css');\\\\n@import './t\\\\\\\\65\\\\\\\\73\\\\\\\\74.css';\\\\n@import url('./t\\\\\\\\65\\\\\\\\73\\\\\\\\74.css');\\\\n@import url(./test\\\\\\\\ test.css);\\\\n@import url(./t\\\\\\\\65st%20test.css);\\\\n@import url('./t\\\\\\\\65st%20test.css');\\\\n@import url(\\\\\\"./t\\\\\\\\65st%20test.css\\\\\\");\\\\n@import \\\\\\"./t\\\\\\\\65st%20test.css\\\\\\";\\\\n@import './t\\\\\\\\65st%20test.css';\\\\n@import url( test.css );\\\\n\\", \\"\\"]); @@ -232,36 +226,50 @@ Array [ Array [ "./import/import.css", "@import url(http://example.com/style.css);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/style.css);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/style.css#hash);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/style.css?#hash);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/style.css?foo=bar#hash);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/other-style.css);", "screen and (orientation:landscape)", + true, ], Array [ "./import/import.css", "@import url(http://example.com/other-style.css);", "screen and (orientation:landscape)", + true, ], Array [ "./import/import.css", "@import url(//example.com/style.css);", + "", + true, ], Array [ "../../src/index.js?[ident]!./import/query.css?foo=1&bar=1", @@ -279,25 +287,23 @@ Array [ ", "", ], - Array [ - "../../src/index.js?[ident]!./import/other-query.css?foo=1&bar=1#hash", - ".other-query { - f: f; -} -", - "screen and (orientation:landscape)", - ], Array [ "./import/import.css", "@import url(https://fonts.googleapis.com/css?family=Roboto);", + "", + true, ], Array [ "./import/import.css", "@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC);", + "", + true, ], Array [ "./import/import.css", "@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC|Roboto);", + "", + true, ], Array [ "../../src/index.js?[ident]!./import/relative.css", @@ -344,30 +350,6 @@ Array [ ".strange { color: red; } -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/te'st.css", - ".strange { - color: red; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/te'st.css", - ".strange { - color: red; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/te'st.css", - ".strange { - color: red; -} ", "", ], @@ -535,69 +517,69 @@ var ___CSS_LOADER_AT_RULE_IMPORT_12___ = require(\\"-!../../../src/index.js??[id var ___CSS_LOADER_GET_URL_IMPORT___ = require(\\"../../../src/runtime/getUrl.js\\"); var ___CSS_LOADER_URL_IMPORT_0___ = require(\\"./img.png\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation:landscape)\\"); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation: landscape)\\"); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation:landscape)\\"); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation:landscape)\\"); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_1___, \\"screen and (orientation:landscape)\\"); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_2___, \\"(min-width: 100px)\\"); -exports.push([module.id, \\"@import url(http://example.com/style.css);\\"]); -exports.push([module.id, \\"@import url(http://example.com/style.css);\\"]); -exports.push([module.id, \\"@import url(http://example.com/style.css#hash);\\"]); -exports.push([module.id, \\"@import url(http://example.com/style.css?#hash);\\"]); -exports.push([module.id, \\"@import url(http://example.com/style.css?foo=bar#hash);\\"]); -exports.push([module.id, \\"@import url(http://example.com/other-style.css);\\", \\"screen and (orientation:landscape)\\"]); -exports.push([module.id, \\"@import url(http://example.com/other-style.css);\\", \\"screen and (orientation:landscape)\\"]); -exports.push([module.id, \\"@import url(//example.com/style.css);\\"]); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_3___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_4___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_5___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_5___, \\"screen and (orientation:landscape)\\"); -exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Roboto);\\"]); -exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC);\\"]); -exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC|Roboto);\\"]); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_6___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_7___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_8___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_9___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_10___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation:landscape)\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation: landscape)\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation:landscape)\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation:landscape)\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_1___, \\"screen and (orientation:landscape)\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_2___, \\"(min-width: 100px)\\", true); +exports.push([module.id, \\"@import url(http://example.com/style.css);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/style.css);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/style.css#hash);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/style.css?#hash);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/style.css?foo=bar#hash);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/other-style.css);\\", \\"screen and (orientation:landscape)\\", true]); +exports.push([module.id, \\"@import url(http://example.com/other-style.css);\\", \\"screen and (orientation:landscape)\\", true]); +exports.push([module.id, \\"@import url(//example.com/style.css);\\", \\"\\", true]); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_3___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_4___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_5___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_5___, \\"screen and (orientation:landscape)\\", true); +exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Roboto);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC|Roboto);\\", \\"\\", true]); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_6___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_7___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_8___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_9___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_10___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); // Module 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\\\\n.background {\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); @@ -616,118 +598,6 @@ Array [ ", "", ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "screen and (orientation:landscape)", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "screen and (orientation: landscape)", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "screen and (orientation:landscape)", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "screen and (orientation:landscape)", - ], Array [ "../../src/index.js?[ident]!./import/test-nested-media.css", "a { @@ -755,36 +625,50 @@ Array [ Array [ "./import/import.css", "@import url(http://example.com/style.css);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/style.css);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/style.css#hash);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/style.css?#hash);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/style.css?foo=bar#hash);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/other-style.css);", "screen and (orientation:landscape)", + true, ], Array [ "./import/import.css", "@import url(http://example.com/other-style.css);", "screen and (orientation:landscape)", + true, ], Array [ "./import/import.css", "@import url(//example.com/style.css);", + "", + true, ], Array [ "../../src/index.js?[ident]!./import/node_modules/package/test.css", @@ -810,25 +694,23 @@ Array [ ", "", ], - Array [ - "../../src/index.js?[ident]!./import/other-query.css?foo=1&bar=1#hash", - ".other-query { - f: f; -} -", - "screen and (orientation:landscape)", - ], Array [ "./import/import.css", "@import url(https://fonts.googleapis.com/css?family=Roboto);", + "", + true, ], Array [ "./import/import.css", "@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC);", + "", + true, ], Array [ "./import/import.css", "@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC|Roboto);", + "", + true, ], Array [ "../../src/index.js?[ident]!./import/relative.css", @@ -867,70 +749,6 @@ Array [ ".background-imported { background: url(/webpack/public/path/img.png); } -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/te'st.css", - ".strange { - color: red; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/te'st.css", - ".strange { - color: red; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/te'st.css", - ".strange { - color: red; -} ", "", ], @@ -947,134 +765,6 @@ Array [ ".space { color: gray; } -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} ", "", ], @@ -1324,69 +1014,69 @@ var ___CSS_LOADER_AT_RULE_IMPORT_12___ = require(\\"-!../../../src/index.js??[id var ___CSS_LOADER_GET_URL_IMPORT___ = require(\\"../../../src/runtime/getUrl.js\\"); var ___CSS_LOADER_URL_IMPORT_0___ = require(\\"./img.png\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation:landscape)\\"); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation: landscape)\\"); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation:landscape)\\"); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation:landscape)\\"); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_1___, \\"screen and (orientation:landscape)\\"); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_2___, \\"(min-width: 100px)\\"); -exports.push([module.id, \\"@import url(http://example.com/style.css);\\"]); -exports.push([module.id, \\"@import url(http://example.com/style.css);\\"]); -exports.push([module.id, \\"@import url(http://example.com/style.css#hash);\\"]); -exports.push([module.id, \\"@import url(http://example.com/style.css?#hash);\\"]); -exports.push([module.id, \\"@import url(http://example.com/style.css?foo=bar#hash);\\"]); -exports.push([module.id, \\"@import url(http://example.com/other-style.css);\\", \\"screen and (orientation:landscape)\\"]); -exports.push([module.id, \\"@import url(http://example.com/other-style.css);\\", \\"screen and (orientation:landscape)\\"]); -exports.push([module.id, \\"@import url(//example.com/style.css);\\"]); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_3___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_4___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_5___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_5___, \\"screen and (orientation:landscape)\\"); -exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Roboto);\\"]); -exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC);\\"]); -exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC|Roboto);\\"]); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_6___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_7___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_8___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_9___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_10___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation:landscape)\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation: landscape)\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation:landscape)\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"screen and (orientation:landscape)\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_1___, \\"screen and (orientation:landscape)\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_2___, \\"(min-width: 100px)\\", true); +exports.push([module.id, \\"@import url(http://example.com/style.css);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/style.css);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/style.css#hash);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/style.css?#hash);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/style.css?foo=bar#hash);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(http://example.com/other-style.css);\\", \\"screen and (orientation:landscape)\\", true]); +exports.push([module.id, \\"@import url(http://example.com/other-style.css);\\", \\"screen and (orientation:landscape)\\", true]); +exports.push([module.id, \\"@import url(//example.com/style.css);\\", \\"\\", true]); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_3___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_4___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_5___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_5___, \\"screen and (orientation:landscape)\\", true); +exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Roboto);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC);\\", \\"\\", true]); +exports.push([module.id, \\"@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC|Roboto);\\", \\"\\", true]); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_6___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_7___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_8___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_9___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_10___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_11___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_12___, \\"\\", true); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); // Module 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\\\\n.background {\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); @@ -1405,118 +1095,6 @@ Array [ ", "", ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "screen and (orientation:landscape)", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "screen and (orientation: landscape)", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "screen and (orientation:landscape)", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "screen and (orientation:landscape)", - ], Array [ "../../src/index.js?[ident]!./import/test-nested-media.css", "a { @@ -1544,36 +1122,50 @@ Array [ Array [ "./import/import.css", "@import url(http://example.com/style.css);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/style.css);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/style.css#hash);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/style.css?#hash);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/style.css?foo=bar#hash);", + "", + true, ], Array [ "./import/import.css", "@import url(http://example.com/other-style.css);", "screen and (orientation:landscape)", + true, ], Array [ "./import/import.css", "@import url(http://example.com/other-style.css);", "screen and (orientation:landscape)", + true, ], Array [ "./import/import.css", "@import url(//example.com/style.css);", + "", + true, ], Array [ "../../src/index.js?[ident]!./import/node_modules/package/test.css", @@ -1599,25 +1191,23 @@ Array [ ", "", ], - Array [ - "../../src/index.js?[ident]!./import/other-query.css?foo=1&bar=1#hash", - ".other-query { - f: f; -} -", - "screen and (orientation:landscape)", - ], Array [ "./import/import.css", "@import url(https://fonts.googleapis.com/css?family=Roboto);", + "", + true, ], Array [ "./import/import.css", "@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC);", + "", + true, ], Array [ "./import/import.css", "@import url(https://fonts.googleapis.com/css?family=Noto+Sans+TC|Roboto);", + "", + true, ], Array [ "../../src/index.js?[ident]!./import/relative.css", @@ -1656,46 +1246,6 @@ Array [ ".background-imported { background: url(/webpack/public/path/img.png); } -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} ", "", ], @@ -1704,70 +1254,6 @@ Array [ ".strange { color: red; } -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/te'st.css", - ".strange { - color: red; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/te'st.css", - ".strange { - color: red; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/te'st.css", - ".strange { - color: red; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} ", "", ], @@ -1776,94 +1262,6 @@ Array [ ".space { color: gray; } -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test test.css", - ".space { - color: gray; -} -", - "", - ], - Array [ - "../../src/index.js?[ident]!./import/test.css", - ".test { - a: a; -} ", "", ], diff --git a/test/__snapshots__/importLoaders-option.test.js.snap b/test/__snapshots__/importLoaders-option.test.js.snap index ec9a1d38..6a7043ce 100644 --- a/test/__snapshots__/importLoaders-option.test.js.snap +++ b/test/__snapshots__/importLoaders-option.test.js.snap @@ -7,7 +7,7 @@ exports[`"importLoaders" option should work when not specified: module 1`] = ` var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js!./imported.css\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".foo {\\\\n color: red;\\\\n color: rgba(0, 0, 255, 0.9);\\\\n}\\\\n\\", \\"\\"]); // Exports @@ -47,7 +47,7 @@ exports[`"importLoaders" option should work with a value equal to "0" (\`postcss var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./imported.css\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".foo {\\\\n color: red;\\\\n color: rgba(0, 0, 255, 0.9);\\\\n}\\\\n\\", \\"\\"]); // Exports @@ -87,7 +87,7 @@ exports[`"importLoaders" option should work with a value equal to "1" ("postcss- var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./imported.css\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".foo {\\\\n color: red;\\\\n color: rgba(0, 0, 255, 0.9);\\\\n}\\\\n\\", \\"\\"]); // Exports @@ -127,7 +127,7 @@ exports[`"importLoaders" option should work with a value equal to "1" (no loader var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./imported.css\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".foo {\\\\n color: red;\\\\n color: rgb(0 0 100% / 90%);\\\\n}\\\\n\\", \\"\\"]); // Exports @@ -167,7 +167,7 @@ exports[`"importLoaders" option should work with a value equal to "2" ("postcss- var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./imported.css\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".foo {\\\\n color: red;\\\\n color: rgba(0, 0, 255, 0.9);\\\\n}\\\\n\\", \\"\\"]); // Exports diff --git a/test/__snapshots__/loader.test.js.snap b/test/__snapshots__/loader.test.js.snap index 0f296761..9d234f7e 100644 --- a/test/__snapshots__/loader.test.js.snap +++ b/test/__snapshots__/loader.test.js.snap @@ -161,7 +161,7 @@ var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../src/index.js!./import var ___CSS_LOADER_GET_URL_IMPORT___ = require(\\"../../src/runtime/getUrl.js\\"); var ___CSS_LOADER_URL_IMPORT_0___ = require(\\"./url/img.png\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); // Module exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n.class {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\\\n.class-duplicate-url {\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\\\n:root {\\\\n --foo: 1px;\\\\n --bar: 2px;\\\\n}\\\\n\\\\n.class { a: b c d; }\\\\n\\\\n.two {}\\\\n\\\\n.u-m\\\\\\\\+ { a: b c d; }\\\\n\\\\n.class { content: \\\\\\"\\\\\\\\F10C\\\\\\" }\\\\n\\\\n@media only screen and (max-width: 600px) {\\\\n body {\\\\n background-color: lightblue;\\\\n }\\\\n}\\\\n\\\\n.class {\\\\n content: \\\\\\"\\\\\\\\2193\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2193\\\\\\\\2193\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2193 \\\\\\\\2193\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2193\\\\\\\\2193\\\\\\\\2193\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2193 \\\\\\\\2193 \\\\\\\\2193\\\\\\";\\\\n}\\\\n\\\\n.-top {}\\\\n.\\\\\\\\-top {}\\\\n\\\\n#\\\\\\\\#test {}\\\\n\\\\n.grid {\\\\n display: flex;\\\\n flex-wrap: wrap;\\\\n}\\\\n.grid.\\\\\\\\-top {\\\\n align-items: flex-start;\\\\n}\\\\n.grid.-top {\\\\n align-items: flex-start;\\\\n}\\\\n.grid.\\\\\\\\-middle {\\\\n align-items: center;\\\\n}\\\\n.grid.\\\\\\\\-bottom {\\\\n align-items: flex-end;\\\\n}\\\\n\\\\n.u-m\\\\\\\\00002b {}\\\\n\\\\n.u-m00002b {}\\\\n\\\\n#u-m\\\\\\\\+ {}\\\\n\\\\nbody {\\\\n font-family: '微软雅黑'; /* some chinese font name */\\\\n}\\\\n\\\\n.myStyle {\\\\n content: '\\\\\\\\e901';\\\\n}\\\\n\\\\n.myStyle {\\\\n content: '\\\\\\\\E901';\\\\n}\\\\n\\\\n.♫ {}\\\\n\\\\n.\\\\\\\\3A \\\\\\\\\`\\\\\\\\( {} /* matches elements with class=\\\\\\":\`(\\\\\\" */\\\\n.\\\\\\\\31 a2b3c {} /* matches elements with class=\\\\\\"1a2b3c\\\\\\" */\\\\n#\\\\\\\\#fake-id {} /* matches the element with id=\\\\\\"#fake-id\\\\\\" */\\\\n#-a-b-c- {} /* matches the element with id=\\\\\\"-a-b-c-\\\\\\" */\\\\n#© {} /* matches the element with id=\\\\\\"©\\\\\\" */\\\\n\\\\n:root {\\\\n --title-align: center;\\\\n --sr-only: {\\\\n position: absolute;\\\\n width: 1px;\\\\n height: 1px;\\\\n padding: 0;\\\\n overflow: hidden;\\\\n clip: rect(0,0,0,0);\\\\n white-space: nowrap;\\\\n clip-path: inset(50%);\\\\n border: 0;\\\\n };\\\\n}\\\\n\\\\n.test {\\\\n content: \\\\\\"\\\\\\\\2014\\\\\\\\A0\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2014 \\\\\\\\A0\\\\\\";\\\\n content: \\\\\\"\\\\\\\\A0 \\\\\\\\2014\\\\\\";\\\\n content: \\\\\\"\\\\\\\\A0\\\\\\\\2014\\\\\\";\\\\n margin-top: 1px\\\\\\\\9;\\\\n background-color: #000\\\\\\\\9;\\\\n}\\\\n\\\\n.light.on .bulb:before{\\\\n content: '💡';\\\\n}\\\\n\\\\n.base64 {\\\\n background: url(data:img/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAhxJREFUSA3tk71rU1EYxnMTEoJUkowWwdJ2akEHBfGjCiIF6ZylVUKSm2TqZLGI+A/oIu2UXm8C4lAyF4SWji0tdFLo1Eo7VN0SaBEhH7e/Nz0nPTfGOjiaCyfPc5734zlfCQT6X/8E/vUErL81KBaL9y3LSnued5PcITjUOwR3gsFg2bbtjYt6/NGgXC4P1et1l2aPLmpAbD0SidjpdPqgV15PA9d17zQajU8UxHQRK/4G35Q5pveAK8LlI1ZjPMnlcltnyvnvbwaO41xvtVqy7YHztMACq5xnlb9EY3dRdvcGo1kj5wR+t1AofDG0gM+A875E8DNjRCexsrV8Pj9ZqVQitVrtqejxePxjMpmss5hVTB4buXvMb2DyU2tBTRS+BjvNlVYUpPl7iuVO3Gq1uoQx1FtSOW1gPgp5ZWrdBtNmUDgv5asgxQ8F1af5vhY0YjyjuWC3wTszKJz7GBOkcFlQfW2ONq4FjWi+Hj6DRCKxQOK2TlY4x92EuYd5dvMAbYIzfikau3pu5tJ8KxaLLfo0cyKci7tK4TZjUMcoXAmHwzle0Q/RaC5P1GFMyVx9R9Fo9HYqlTrSgqDvFelAqVQa5hmuMR/WGtjAaBdjwBoDQ0ZsnwVMZjKZ9n0Zem8DSeDPdrnZbL6F2l3NOvUYNZk4oVDoRTabPe4EDNJzB0ZcjAYxeoZ2i3FNxQ7BHYw/cB/fldaH//UETgHHO8S44KbfXgAAAABJRU5ErkJggg==);\\\\n}\\\\n\\\\na[href=''] {\\\\n color: red;\\\\n}\\\\n\\\\na[href='' i] {\\\\n color: red;\\\\n}\\\\n\\\\na[href=\\\\\\"\\\\\\"] {\\\\n color: blue;\\\\n}\\\\n\\\\na[href=\\\\\\"\\\\\\" i] {\\\\n color: blue;\\\\n}\\\\n\\", \\"\\"]); @@ -399,7 +399,7 @@ var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../src/index.js??[ident] var ___CSS_LOADER_GET_URL_IMPORT___ = require(\\"../../src/runtime/getUrl.js\\"); var ___CSS_LOADER_URL_IMPORT_0___ = require(\\"./url/img.png\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); // Module exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n.class {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\\\n.class-duplicate-url {\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\\\n:root {\\\\n --foo: 1px;\\\\n --bar: 2px;\\\\n}\\\\n\\\\n.class { a: b c d; }\\\\n\\\\n.two {}\\\\n\\\\n.u-m\\\\\\\\+ { a: b c d; }\\\\n\\\\n.class { content: \\\\\\"\\\\\\\\F10C\\\\\\" }\\\\n\\\\n@media only screen and (max-width: 600px) {\\\\n body {\\\\n background-color: lightblue;\\\\n }\\\\n}\\\\n\\\\n.class {\\\\n content: \\\\\\"\\\\\\\\2193\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2193\\\\\\\\2193\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2193 \\\\\\\\2193\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2193\\\\\\\\2193\\\\\\\\2193\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2193 \\\\\\\\2193 \\\\\\\\2193\\\\\\";\\\\n}\\\\n\\\\n.-top {}\\\\n.\\\\\\\\-top {}\\\\n\\\\n#\\\\\\\\#test {}\\\\n\\\\n.grid {\\\\n display: flex;\\\\n flex-wrap: wrap;\\\\n}\\\\n.grid.\\\\\\\\-top {\\\\n align-items: flex-start;\\\\n}\\\\n.grid.-top {\\\\n align-items: flex-start;\\\\n}\\\\n.grid.\\\\\\\\-middle {\\\\n align-items: center;\\\\n}\\\\n.grid.\\\\\\\\-bottom {\\\\n align-items: flex-end;\\\\n}\\\\n\\\\n.u-m\\\\\\\\00002b {}\\\\n\\\\n.u-m00002b {}\\\\n\\\\n#u-m\\\\\\\\+ {}\\\\n\\\\nbody {\\\\n font-family: '微软雅黑'; /* some chinese font name */\\\\n}\\\\n\\\\n.myStyle {\\\\n content: '\\\\\\\\e901';\\\\n}\\\\n\\\\n.myStyle {\\\\n content: '\\\\\\\\E901';\\\\n}\\\\n\\\\n.♫ {}\\\\n\\\\n.\\\\\\\\3A \\\\\\\\\`\\\\\\\\( {} /* matches elements with class=\\\\\\":\`(\\\\\\" */\\\\n.\\\\\\\\31 a2b3c {} /* matches elements with class=\\\\\\"1a2b3c\\\\\\" */\\\\n#\\\\\\\\#fake-id {} /* matches the element with id=\\\\\\"#fake-id\\\\\\" */\\\\n#-a-b-c- {} /* matches the element with id=\\\\\\"-a-b-c-\\\\\\" */\\\\n#© {} /* matches the element with id=\\\\\\"©\\\\\\" */\\\\n\\\\n:root {\\\\n --title-align: center;\\\\n --sr-only: {\\\\n position: absolute;\\\\n width: 1px;\\\\n height: 1px;\\\\n padding: 0;\\\\n overflow: hidden;\\\\n clip: rect(0,0,0,0);\\\\n white-space: nowrap;\\\\n clip-path: inset(50%);\\\\n border: 0;\\\\n };\\\\n}\\\\n\\\\n.test {\\\\n content: \\\\\\"\\\\\\\\2014\\\\\\\\A0\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2014 \\\\\\\\A0\\\\\\";\\\\n content: \\\\\\"\\\\\\\\A0 \\\\\\\\2014\\\\\\";\\\\n content: \\\\\\"\\\\\\\\A0\\\\\\\\2014\\\\\\";\\\\n margin-top: 1px\\\\\\\\9;\\\\n background-color: #000\\\\\\\\9;\\\\n}\\\\n\\\\n.light.on .bulb:before{\\\\n content: '💡';\\\\n}\\\\n\\\\n.base64 {\\\\n background: url(data:img/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAhxJREFUSA3tk71rU1EYxnMTEoJUkowWwdJ2akEHBfGjCiIF6ZylVUKSm2TqZLGI+A/oIu2UXm8C4lAyF4SWji0tdFLo1Eo7VN0SaBEhH7e/Nz0nPTfGOjiaCyfPc5734zlfCQT6X/8E/vUErL81KBaL9y3LSnued5PcITjUOwR3gsFg2bbtjYt6/NGgXC4P1et1l2aPLmpAbD0SidjpdPqgV15PA9d17zQajU8UxHQRK/4G35Q5pveAK8LlI1ZjPMnlcltnyvnvbwaO41xvtVqy7YHztMACq5xnlb9EY3dRdvcGo1kj5wR+t1AofDG0gM+A875E8DNjRCexsrV8Pj9ZqVQitVrtqejxePxjMpmss5hVTB4buXvMb2DyU2tBTRS+BjvNlVYUpPl7iuVO3Gq1uoQx1FtSOW1gPgp5ZWrdBtNmUDgv5asgxQ8F1af5vhY0YjyjuWC3wTszKJz7GBOkcFlQfW2ONq4FjWi+Hj6DRCKxQOK2TlY4x92EuYd5dvMAbYIzfikau3pu5tJ8KxaLLfo0cyKci7tK4TZjUMcoXAmHwzle0Q/RaC5P1GFMyVx9R9Fo9HYqlTrSgqDvFelAqVQa5hmuMR/WGtjAaBdjwBoDQ0ZsnwVMZjKZ9n0Zem8DSeDPdrnZbL6F2l3NOvUYNZk4oVDoRTabPe4EDNJzB0ZcjAYxeoZ2i3FNxQ7BHYw/cB/fldaH//UETgHHO8S44KbfXgAAAABJRU5ErkJggg==);\\\\n}\\\\n\\\\na[href=''] {\\\\n color: red;\\\\n}\\\\n\\\\na[href='' i] {\\\\n color: red;\\\\n}\\\\n\\\\na[href=\\\\\\"\\\\\\"] {\\\\n color: blue;\\\\n}\\\\n\\\\na[href=\\\\\\"\\\\\\" i] {\\\\n color: blue;\\\\n}\\\\n\\", \\"\\"]); @@ -572,7 +572,7 @@ var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../src/index.js??[ident] var ___CSS_LOADER_GET_URL_IMPORT___ = require(\\"../../src/runtime/getUrl.js\\"); var ___CSS_LOADER_URL_IMPORT_0___ = require(\\"./url/img.png\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); // Module exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n.class {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\\\n.class-duplicate-url {\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\\\n:root {\\\\n --foo: 1px;\\\\n --bar: 2px;\\\\n}\\\\n\\\\n.class { a: b c d; }\\\\n\\\\n.two {}\\\\n\\\\n.u-m\\\\\\\\+ { a: b c d; }\\\\n\\\\n.class { content: \\\\\\"\\\\\\\\F10C\\\\\\" }\\\\n\\\\n@media only screen and (max-width: 600px) {\\\\n body {\\\\n background-color: lightblue;\\\\n }\\\\n}\\\\n\\\\n.class {\\\\n content: \\\\\\"\\\\\\\\2193\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2193\\\\\\\\2193\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2193 \\\\\\\\2193\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2193\\\\\\\\2193\\\\\\\\2193\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2193 \\\\\\\\2193 \\\\\\\\2193\\\\\\";\\\\n}\\\\n\\\\n.-top {}\\\\n.\\\\\\\\-top {}\\\\n\\\\n#\\\\\\\\#test {}\\\\n\\\\n.grid {\\\\n display: flex;\\\\n flex-wrap: wrap;\\\\n}\\\\n.grid.\\\\\\\\-top {\\\\n align-items: flex-start;\\\\n}\\\\n.grid.-top {\\\\n align-items: flex-start;\\\\n}\\\\n.grid.\\\\\\\\-middle {\\\\n align-items: center;\\\\n}\\\\n.grid.\\\\\\\\-bottom {\\\\n align-items: flex-end;\\\\n}\\\\n\\\\n.u-m\\\\\\\\00002b {}\\\\n\\\\n.u-m00002b {}\\\\n\\\\n#u-m\\\\\\\\+ {}\\\\n\\\\nbody {\\\\n font-family: '微软雅黑'; /* some chinese font name */\\\\n}\\\\n\\\\n.myStyle {\\\\n content: '\\\\\\\\e901';\\\\n}\\\\n\\\\n.myStyle {\\\\n content: '\\\\\\\\E901';\\\\n}\\\\n\\\\n.♫ {}\\\\n\\\\n.\\\\\\\\3A \\\\\\\\\`\\\\\\\\( {} /* matches elements with class=\\\\\\":\`(\\\\\\" */\\\\n.\\\\\\\\31 a2b3c {} /* matches elements with class=\\\\\\"1a2b3c\\\\\\" */\\\\n#\\\\\\\\#fake-id {} /* matches the element with id=\\\\\\"#fake-id\\\\\\" */\\\\n#-a-b-c- {} /* matches the element with id=\\\\\\"-a-b-c-\\\\\\" */\\\\n#© {} /* matches the element with id=\\\\\\"©\\\\\\" */\\\\n\\\\n:root {\\\\n --title-align: center;\\\\n --sr-only: {\\\\n position: absolute;\\\\n width: 1px;\\\\n height: 1px;\\\\n padding: 0;\\\\n overflow: hidden;\\\\n clip: rect(0,0,0,0);\\\\n white-space: nowrap;\\\\n clip-path: inset(50%);\\\\n border: 0;\\\\n };\\\\n}\\\\n\\\\n.test {\\\\n content: \\\\\\"\\\\\\\\2014\\\\\\\\A0\\\\\\";\\\\n content: \\\\\\"\\\\\\\\2014 \\\\\\\\A0\\\\\\";\\\\n content: \\\\\\"\\\\\\\\A0 \\\\\\\\2014\\\\\\";\\\\n content: \\\\\\"\\\\\\\\A0\\\\\\\\2014\\\\\\";\\\\n margin-top: 1px\\\\\\\\9;\\\\n background-color: #000\\\\\\\\9;\\\\n}\\\\n\\\\n.light.on .bulb:before{\\\\n content: '💡';\\\\n}\\\\n\\\\n.base64 {\\\\n background: url(data:img/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAhxJREFUSA3tk71rU1EYxnMTEoJUkowWwdJ2akEHBfGjCiIF6ZylVUKSm2TqZLGI+A/oIu2UXm8C4lAyF4SWji0tdFLo1Eo7VN0SaBEhH7e/Nz0nPTfGOjiaCyfPc5734zlfCQT6X/8E/vUErL81KBaL9y3LSnued5PcITjUOwR3gsFg2bbtjYt6/NGgXC4P1et1l2aPLmpAbD0SidjpdPqgV15PA9d17zQajU8UxHQRK/4G35Q5pveAK8LlI1ZjPMnlcltnyvnvbwaO41xvtVqy7YHztMACq5xnlb9EY3dRdvcGo1kj5wR+t1AofDG0gM+A875E8DNjRCexsrV8Pj9ZqVQitVrtqejxePxjMpmss5hVTB4buXvMb2DyU2tBTRS+BjvNlVYUpPl7iuVO3Gq1uoQx1FtSOW1gPgp5ZWrdBtNmUDgv5asgxQ8F1af5vhY0YjyjuWC3wTszKJz7GBOkcFlQfW2ONq4FjWi+Hj6DRCKxQOK2TlY4x92EuYd5dvMAbYIzfikau3pu5tJ8KxaLLfo0cyKci7tK4TZjUMcoXAmHwzle0Q/RaC5P1GFMyVx9R9Fo9HYqlTrSgqDvFelAqVQa5hmuMR/WGtjAaBdjwBoDQ0ZsnwVMZjKZ9n0Zem8DSeDPdrnZbL6F2l3NOvUYNZk4oVDoRTabPe4EDNJzB0ZcjAYxeoZ2i3FNxQ7BHYw/cB/fldaH//UETgHHO8S44KbfXgAAAABJRU5ErkJggg==);\\\\n}\\\\n\\\\na[href=''] {\\\\n color: red;\\\\n}\\\\n\\\\na[href='' i] {\\\\n color: red;\\\\n}\\\\n\\\\na[href=\\\\\\"\\\\\\"] {\\\\n color: blue;\\\\n}\\\\n\\\\na[href=\\\\\\"\\\\\\" i] {\\\\n color: blue;\\\\n}\\\\n\\", \\"\\"]); diff --git a/test/__snapshots__/modules-option.test.js.snap b/test/__snapshots__/modules-option.test.js.snap index 78f29864..d8cd845b 100644 --- a/test/__snapshots__/modules-option.test.js.snap +++ b/test/__snapshots__/modules-option.test.js.snap @@ -475,12 +475,14 @@ Array [ ], Array [ "../../src/index.js?[ident]!./modules/dedupe/colors/black.css", - "", + " +", "", ], Array [ "../../src/index.js?[ident]!./modules/dedupe/colors/white.css", - "", + " +", "", ], Array [ diff --git a/test/__snapshots__/sourceMap-option.test.js.snap b/test/__snapshots__/sourceMap-option.test.js.snap index 02092fd5..ce52f69a 100644 --- a/test/__snapshots__/sourceMap-option.test.js.snap +++ b/test/__snapshots__/sourceMap-option.test.js.snap @@ -7,7 +7,7 @@ exports[`"sourceMap" option false should not generate source maps when source ma var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./nested/nested.css\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".class {\\\\n color: red;\\\\n}\\\\n\\", \\"\\"]); // Exports @@ -45,7 +45,7 @@ exports[`"sourceMap" option false should not generate source maps when source ma var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./nested/nested.css\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".class {\\\\n color: red;\\\\n}\\\\n\\", \\"\\"]); // Exports @@ -83,7 +83,7 @@ exports[`"sourceMap" option false should not generate source maps when source ma var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./nested/nested.css\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".class {\\\\n color: red;\\\\n}\\\\n\\", \\"\\"]); // Exports @@ -121,7 +121,7 @@ exports[`"sourceMap" option false should not generate source maps when source ma var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./nested/nested.postcss.css\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\":root {\\\\n --fontSize: 1rem;\\\\n --mainColor: rgba(18,52,86,0.47059);\\\\n --secondaryColor: rgba(102, 51, 153, 0.9);\\\\n}\\\\n\\\\nhtml {\\\\n overflow-x: hidden;\\\\n overflow-y: auto;\\\\n overflow: hidden auto;\\\\n}\\\\n\\\\n@media (max-width: 50rem) {\\\\n body {\\\\n color: rgba(18,52,86,0.47059);\\\\n color: var(--mainColor);\\\\n font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;\\\\n font-size: 1rem;\\\\n font-size: var(--fontSize);\\\\n line-height: calc(1rem * 1.5);\\\\n line-height: calc(var(--fontSize) * 1.5);\\\\n word-wrap: break-word;\\\\n padding-left: calc(1rem / 2 + 1px);\\\\n padding-right: calc(1rem / 2 + 1px);\\\\n padding-left: calc(var(--fontSize) / 2 + 1px);\\\\n padding-right: calc(var(--fontSize) / 2 + 1px);\\\\n }\\\\n}\\\\n\\\\nh1,h2,h3,h4,h5,h6 {\\\\n margin-top: 0;\\\\n margin-bottom: 0;\\\\n}\\\\n\\\\na {\\\\n color: rgba(0, 0, 255, 0.9)\\\\n}\\\\n\\\\na:hover {\\\\n color: #639;\\\\n }\\\\n\\", \\"\\"]); // Exports @@ -225,7 +225,7 @@ exports[`"sourceMap" option false should not generate source maps: module 1`] = var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./nested/nested.css\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".class {\\\\n color: red;\\\\n}\\\\n\\", \\"\\"]); // Exports @@ -263,7 +263,7 @@ exports[`"sourceMap" option not specified should not generate source maps: modul var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./nested/nested.css\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".class {\\\\n color: red;\\\\n}\\\\n\\", \\"\\"]); // Exports @@ -301,7 +301,7 @@ exports[`"sourceMap" option true should generate source maps when source maps eq var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./nested/nested.css\\"); exports = ___CSS_LOADER_API_IMPORT___(true); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".class {\\\\n color: red;\\\\n}\\\\n\\", \\"\\",{\\"version\\":3,\\"sources\\":[\\"basic.css\\"],\\"names\\":[],\\"mappings\\":\\"AAEA;EACE,UAAU;AACZ\\",\\"file\\":\\"basic.css\\",\\"sourcesContent\\":[\\"@import \\\\\\"./nested/nested.css\\\\\\";\\\\n\\\\n.class {\\\\n color: red;\\\\n}\\\\n\\"]}]); // Exports @@ -371,7 +371,7 @@ exports[`"sourceMap" option true should generate source maps when source maps eq var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./nested/nested.css\\"); exports = ___CSS_LOADER_API_IMPORT___(true); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".class {\\\\n color: red;\\\\n}\\\\n\\", \\"\\",{\\"version\\":3,\\"sources\\":[\\"basic.css\\"],\\"names\\":[],\\"mappings\\":\\"AAEA;EACE,UAAU;AACZ\\",\\"file\\":\\"basic.css\\",\\"sourcesContent\\":[\\"@import \\\\\\"./nested/nested.css\\\\\\";\\\\n\\\\n.class {\\\\n color: red;\\\\n}\\\\n\\"]}]); // Exports @@ -441,7 +441,7 @@ exports[`"sourceMap" option true should generate source maps when source maps is var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./nested/nested.css\\"); exports = ___CSS_LOADER_API_IMPORT___(true); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".class {\\\\n color: red;\\\\n}\\\\n\\", \\"\\",{\\"version\\":3,\\"sources\\":[\\"basic.css\\"],\\"names\\":[],\\"mappings\\":\\"AAEA;EACE,UAAU;AACZ\\",\\"file\\":\\"basic.css\\",\\"sourcesContent\\":[\\".class {\\\\n color: red;\\\\n}\\\\n\\"]}]); // Exports @@ -509,7 +509,7 @@ exports[`"sourceMap" option true should generate source maps when source maps is var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./nested/nested.postcss.css\\"); exports = ___CSS_LOADER_API_IMPORT___(true); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\":root {\\\\n --fontSize: 1rem;\\\\n --mainColor: rgba(18,52,86,0.47059);\\\\n --secondaryColor: rgba(102, 51, 153, 0.9);\\\\n}\\\\n\\\\nhtml {\\\\n overflow-x: hidden;\\\\n overflow-y: auto;\\\\n overflow: hidden auto;\\\\n}\\\\n\\\\n@media (max-width: 50rem) {\\\\n body {\\\\n color: rgba(18,52,86,0.47059);\\\\n color: var(--mainColor);\\\\n font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;\\\\n font-size: 1rem;\\\\n font-size: var(--fontSize);\\\\n line-height: calc(1rem * 1.5);\\\\n line-height: calc(var(--fontSize) * 1.5);\\\\n word-wrap: break-word;\\\\n padding-left: calc(1rem / 2 + 1px);\\\\n padding-right: calc(1rem / 2 + 1px);\\\\n padding-left: calc(var(--fontSize) / 2 + 1px);\\\\n padding-right: calc(var(--fontSize) / 2 + 1px);\\\\n }\\\\n}\\\\n\\\\nh1,h2,h3,h4,h5,h6 {\\\\n margin-top: 0;\\\\n margin-bottom: 0;\\\\n}\\\\n\\\\na {\\\\n color: rgba(0, 0, 255, 0.9)\\\\n}\\\\n\\\\na:hover {\\\\n color: #639;\\\\n }\\\\n\\", \\"\\",{\\"version\\":3,\\"sources\\":[\\"basic.postcss.css\\"],\\"names\\":[],\\"mappings\\":\\"AAKA;EACE,gBAAgB;EAChB,mCAAsB;EACtB,yCAA4C;AAC9C;;AAEA;EACE,kBAAqB;EAArB,gBAAqB;EAArB,qBAAqB;AACvB;;AAEA;EACE;IACE,6BAAuB;IAAvB,uBAAuB;IACvB,iGAAsB;IACtB,eAA0B;IAA1B,0BAA0B;IAC1B,6BAAwC;IAAxC,wCAAwC;IACxC,qBAAyB;IACzB,kCAA+C;IAA/C,mCAA+C;IAA/C,6CAA+C;IAA/C,8CAA+C;EACjD;AACF;;AAEA;EACE,aAAe;EAAf,gBAAe;AACjB;;AAEA;EACE;AAKF;;AAHA;GACG,WAAoB;CACtB\\",\\"file\\":\\"basic.postcss.css\\",\\"sourcesContent\\":[\\"@import \\\\\\"./nested/nested.postcss.css\\\\\\";\\\\n\\\\n@custom-media --viewport-medium (width <= 50rem);\\\\n@custom-selector :--heading h1, h2, h3, h4, h5, h6;\\\\n\\\\n:root {\\\\n --fontSize: 1rem;\\\\n --mainColor: #12345678;\\\\n --secondaryColor: lab(32.5 38.5 -47.6 / 90%);\\\\n}\\\\n\\\\nhtml {\\\\n overflow: hidden auto;\\\\n}\\\\n\\\\n@media (--viewport-medium) {\\\\n body {\\\\n color: var(--mainColor);\\\\n font-family: system-ui;\\\\n font-size: var(--fontSize);\\\\n line-height: calc(var(--fontSize) * 1.5);\\\\n overflow-wrap: break-word;\\\\n padding-inline: calc(var(--fontSize) / 2 + 1px);\\\\n }\\\\n}\\\\n\\\\n:--heading {\\\\n margin-block: 0;\\\\n}\\\\n\\\\na {\\\\n color: rgb(0 0 100% / 90%);\\\\n\\\\n&:hover {\\\\n color: rebeccapurple;\\\\n }\\\\n}\\\\n\\"]}]); // Exports @@ -649,7 +649,7 @@ exports[`"sourceMap" option true should generate source maps: module 1`] = ` var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./nested/nested.css\\"); exports = ___CSS_LOADER_API_IMPORT___(true); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".class {\\\\n color: red;\\\\n}\\\\n\\", \\"\\",{\\"version\\":3,\\"sources\\":[\\"basic.css\\"],\\"names\\":[],\\"mappings\\":\\"AAEA;EACE,UAAU;AACZ\\",\\"file\\":\\"basic.css\\",\\"sourcesContent\\":[\\"@import \\\\\\"./nested/nested.css\\\\\\";\\\\n\\\\n.class {\\\\n color: red;\\\\n}\\\\n\\"]}]); // Exports diff --git a/test/__snapshots__/url-option.test.js.snap b/test/__snapshots__/url-option.test.js.snap index 0fae4c49..0497508b 100644 --- a/test/__snapshots__/url-option.test.js.snap +++ b/test/__snapshots__/url-option.test.js.snap @@ -35,7 +35,7 @@ var ___CSS_LOADER_URL_IMPORT_24___ = require(\\"./img(img.png\\"); var ___CSS_LOADER_URL_IMPORT_25___ = require(\\"./img)img.png\\"); var ___CSS_LOADER_URL_IMPORT_26___ = require(\\"./img'() img.png\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___, { hash: \\"#hash\\" }); var ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___); @@ -526,7 +526,7 @@ var ___CSS_LOADER_URL_IMPORT_11___ = require(\\"./img3x.png\\"); var ___CSS_LOADER_URL_IMPORT_12___ = require(\\"./img1x.png?foo=bar\\"); var ___CSS_LOADER_URL_IMPORT_13___ = require(\\"./img.png\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___); var ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___); @@ -991,7 +991,7 @@ exports[`"url" option should work with a value equal to "false": module 1`] = ` var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./imported.css\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); // Module exports.push([module.id, \\".class {\\\\n background: url('./img.png');\\\\n}\\\\n\\\\n.class {\\\\n background: url(\\\\\\"./img.png\\\\\\");\\\\n}\\\\n\\\\n.class {\\\\n background: url(./img.png);\\\\n}\\\\n\\\\n.class {\\\\n background: url(\\\\\\"./img.png#hash\\\\\\");\\\\n}\\\\n\\\\n.class {\\\\n background: url(\\\\n \\\\\\"./img.png\\\\\\"\\\\n );\\\\n}\\\\n\\\\n.class {\\\\n background: green url( './img.png' ) xyz;\\\\n}\\\\n\\\\n.class {\\\\n background: green url( \\\\\\"./img.png\\\\\\" ) xyz;\\\\n}\\\\n\\\\n.class {\\\\n background: green url( ./img.png ) xyz;\\\\n}\\\\n\\\\n.class {\\\\n background: green url(~package/img.png) url(./other-img.png) xyz;\\\\n}\\\\n\\\\n.class {\\\\n background: green url( \\\\\\"./img img.png\\\\\\" ) xyz;\\\\n}\\\\n\\\\n.class {\\\\n background: green url( './img img.png' ) xyz;\\\\n}\\\\n\\\\n.class {\\\\n background: green url(/img.png) xyz;\\\\n}\\\\n\\\\n.class {\\\\n background: green url(data:image/png;base64,AAA) url(http://example.com/image.jpg) url(//example.com/image.png) xyz;\\\\n}\\\\n\\\\n.class {\\\\n background-image: url(\\\\\\"data:image/svg+xml;charset=utf-8,\\\\\\");\\\\n}\\\\n\\\\n.class {\\\\n background-image: url(\\\\\\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2042%2026%27%20fill%3D%27%2523007aff%27%3E%3Crect%20width%3D%274%27%20height%3D%274%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%271%27%20width%3D%2734%27%20height%3D%272%27%2F%3E%3Crect%20y%3D%2711%27%20width%3D%274%27%20height%3D%274%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%2712%27%20width%3D%2734%27%20height%3D%272%27%2F%3E%3Crect%20y%3D%2722%27%20width%3D%274%27%20height%3D%274%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%2723%27%20width%3D%2734%27%20height%3D%272%27%2F%3E%3C%2Fsvg%3E\\\\\\");\\\\n}\\\\n\\\\n.class {\\\\n filter: url('data:image/svg+xml;charset=utf-8,#filter');\\\\n}\\\\n\\\\n.class {\\\\n filter: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%5C%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%5C%22%3E%3Cfilter%20id%3D%5C%22filter%5C%22%3E%3CfeGaussianBlur%20in%3D%5C%22SourceAlpha%5C%22%20stdDeviation%3D%5C%220%5C%22%20%2F%3E%3CfeOffset%20dx%3D%5C%221%5C%22%20dy%3D%5C%222%5C%22%20result%3D%5C%22offsetblur%5C%22%20%2F%3E%3CfeFlood%20flood-color%3D%5C%22rgba(255%2C255%2C255%2C1)%5C%22%20%2F%3E%3CfeComposite%20in2%3D%5C%22offsetblur%5C%22%20operator%3D%5C%22in%5C%22%20%2F%3E%3CfeMerge%3E%3CfeMergeNode%20%2F%3E%3CfeMergeNode%20in%3D%5C%22SourceGraphic%5C%22%20%2F%3E%3C%2FfeMerge%3E%3C%2Ffilter%3E%3C%2Fsvg%3E%23filter');\\\\n}\\\\n\\\\n.highlight {\\\\n filter: url(#highlight);\\\\n}\\\\n\\\\n.highlight {\\\\n filter: url('#line-marker');\\\\n}\\\\n\\\\n@font-face {\\\\n src: url(./font.woff) format('woff'),\\\\n url('./font.woff2') format('woff2'),\\\\n url(\\\\\\"./font.eot\\\\\\") format('eot'),\\\\n url(~package/font.ttf) format('truetype'),\\\\n url(\\\\\\"./font with spaces.eot\\\\\\") format(\\\\\\"embedded-opentype\\\\\\"),\\\\n url('./font.svg#svgFontName') format('svg'),\\\\n url('./font.woff2?foo=bar') format('woff2'),\\\\n url(\\\\\\"./font.eot?#iefix\\\\\\") format('embedded-opentype'),\\\\n url(\\\\\\"./font with spaces.eot?#iefix\\\\\\") format('embedded-opentype');\\\\n}\\\\n\\\\n@media (min-width: 500px) {\\\\n body {\\\\n background: url(\\\\\\"./img.png\\\\\\");\\\\n }\\\\n}\\\\n\\\\na {\\\\n content: \\\\\\"do not use url(path)\\\\\\";\\\\n}\\\\n\\\\nb {\\\\n content: 'do not \\\\\\"use\\\\\\" url(path)';\\\\n}\\\\n\\\\n@keyframes anim {\\\\n background: green url('./img.png') xyz;\\\\n}\\\\n\\\\n.a {\\\\n background-image: -webkit-image-set(url('./img1x.png') 1x, url('./img2x.png') 2x)\\\\n}\\\\n\\\\n.a {\\\\n background-image: image-set(url('./img1x.png') 1x, url('./img2x.png') 2x)\\\\n}\\\\n\\\\n.class {\\\\n background: green url() xyz;\\\\n}\\\\n\\\\n.class {\\\\n background: green url('') xyz;\\\\n}\\\\n\\\\n.class {\\\\n background: green url(\\\\\\"\\\\\\") xyz;\\\\n}\\\\n\\\\n.class {\\\\n background: green url(' ') xyz;\\\\n}\\\\n\\\\n.class {\\\\n background: green url(\\\\n ) xyz;\\\\n}\\\\n\\\\n.class {\\\\n background: green url(https://raw.githubusercontent.com/webpack/media/master/logo/icon.png) xyz;\\\\n}\\\\n\\\\n.class {\\\\n background: green url(//raw.githubusercontent.com/webpack/media/master/logo/icon.png) xyz;\\\\n}\\\\n\\\\n.class {\\\\n background: url(\\\\\\"./img.png?foo\\\\\\");\\\\n}\\\\n\\\\n.class {\\\\n background: url(\\\\\\"./img.png?foo=bar\\\\\\");\\\\n}\\\\n\\\\n.class {\\\\n background: url(\\\\\\"./img.png?foo=bar#hash\\\\\\");\\\\n}\\\\n\\\\n.class {\\\\n background: url(\\\\\\"./img.png?foo=bar#hash\\\\\\");\\\\n}\\\\n\\\\n.class {\\\\n background: url(\\\\\\"./img.png?\\\\\\");\\\\n}\\\\n\\\\n.class {\\\\n background-image: url('./img.png') url(\\\\\\"data:image/svg+xml;charset=utf-8,\\\\\\") url('./img.png');\\\\n}\\\\n\\\\n.class {\\\\n background: ___CSS_LOADER_URL___;\\\\n background: ___CSS_LOADER_URL___INDEX___;\\\\n background: ___CSS_LOADER_URL___99999___;\\\\n background: ___CSS_LOADER_IMPORT___;\\\\n background: ___CSS_LOADER_IMPORT___INDEX___;\\\\n background: ___CSS_LOADER_IMPORT___99999___;\\\\n}\\\\n\\\\n.pure-url {\\\\n background: url('img-simple.png');\\\\n}\\\\n\\\\n.not-resolved {\\\\n background: url('/img-simple.png');\\\\n}\\\\n\\\\n.above-below {\\\\n background: url('../url/img-simple.png');\\\\n}\\\\n\\\\n.tilde {\\\\n background: url('~package/img.png');\\\\n}\\\\n\\\\n.aliases {\\\\n background: url('~aliasesImg/img.png') ;\\\\n}\\\\n\\\\na {\\\\n background: url(./nested/img.png);\\\\n}\\\\n\\\\na {\\\\n background: url(nested/img.png);\\\\n}\\\\n\\\\n@font-face {\\\\n src: url(\\\\\\"//at.alicdn.com/t/font_515771_emcns5054x3whfr.eot\\\\\\");\\\\n}\\\\n\\\\n.class {\\\\n /* Broken */\\\\n background-image: -webkit-image-set();\\\\n background-image: -webkit-image-set('');\\\\n background-image: image-set();\\\\n background-image: image-set('');\\\\n background-image: image-set(\\\\\\"\\\\\\");\\\\n background-image: image-set(\\\\\\"\\\\\\" 1x);\\\\n background-image: image-set(url());\\\\n background-image: image-set(\\\\n url()\\\\n );\\\\n background-image: image-set(URL());\\\\n background-image: image-set(url(''));\\\\n background-image: image-set(url(\\\\\\"\\\\\\"));\\\\n background-image: image-set(url('') 1x);\\\\n background-image: image-set(1x);\\\\n background-image: image-set(\\\\n 1x\\\\n );\\\\n background: image-set(calc(1rem + 1px) 1x);\\\\n\\\\n /* Strings */\\\\n background-image: -webkit-image-set(\\\\\\"./img1x.png\\\\\\" 1x, \\\\\\"./img2x.png\\\\\\" 2x);\\\\n background-image: image-set(\\\\\\"./img1x.png\\\\\\" 1x);\\\\n background-image: image-set(\\\\\\"./img1x.png\\\\\\" 1x, \\\\\\"./img2x.png\\\\\\" 2x);\\\\n background-image: image-set(\\\\\\"./img img.png\\\\\\" 1x, \\\\\\"./img img.png\\\\\\" 2x);\\\\n background-image: image-set(\\\\\\"./img1x.png\\\\\\" 1x, \\\\\\"./img2x.png\\\\\\" 2x),\\\\n image-set(\\\\\\"./img1x.png\\\\\\" 1x, \\\\\\"./img2x.png\\\\\\" 2x);\\\\n background-image: image-set(\\\\n \\\\\\"./img1x.png\\\\\\" 1x,\\\\n \\\\\\"./img2x.png\\\\\\" 2x,\\\\n \\\\\\"./img3x.png\\\\\\" 600dpi\\\\n );\\\\n background-image: image-set(\\\\\\"./img1x.png?foo=bar\\\\\\" 1x);\\\\n background-image: image-set(\\\\\\"./img1x.png#hash\\\\\\" 1x);\\\\n background-image: image-set(\\\\\\"./img1x.png?#iefix\\\\\\" 1x);\\\\n\\\\n /* With \`url\` function */\\\\n background-image: -webkit-image-set(url(\\\\\\"./img1x.png\\\\\\") 1x, url(\\\\\\"./img2x.png\\\\\\") 2x);\\\\n background-image: -webkit-image-set(url(\\\\\\"./img1x.png\\\\\\") 1x);\\\\n background-image: -webkit-image-set(\\\\n url(\\\\\\"./img1x.png\\\\\\") 1x\\\\n );\\\\n background-image: image-set(url(./img1x.png) 1x);\\\\n background-image: image-set(\\\\n url(./img1x.png) 1x\\\\n );\\\\n background-image: image-set(url(\\\\\\"./img1x.png\\\\\\") 1x, url(\\\\\\"./img2x.png\\\\\\") 2x);\\\\n background-image: image-set(\\\\n url(./img1x.png) 1x,\\\\n url(./img2x.png) 2x,\\\\n url(./img3x.png) 600dpi\\\\n );\\\\n background-image: image-set(url(\\\\\\"./img img.png\\\\\\") 1x, url(\\\\\\"./img img.png\\\\\\") 2x);\\\\n\\\\n background-image: image-set(url(\\\\\\"./img1x.png\\\\\\") 1x, \\\\\\"./img2x.png\\\\\\" 2x);\\\\n}\\\\n\\\\n.class {\\\\n /* Not allowed on windows */\\\\n /* background: url(./img\\\\\\\\\\\\\\"img.png); */\\\\n background: url(./img\\\\\\\\'img.png);\\\\n background: url(./img\\\\\\\\'\\\\\\\\'\\\\\\\\'img.png);\\\\n background: url(./img\\\\\\\\(img.png);\\\\n background: url(./img\\\\\\\\)img.png);\\\\n background: url(./img\\\\\\\\ img.png);\\\\n background: url(./img\\\\\\\\'\\\\\\\\(\\\\\\\\)\\\\\\\\ img.png);\\\\n\\\\n background-image: image-set(\\\\n /* Not allowed on windows */\\\\n /* url(./img\\\\\\\\\\\\\\"img.png) 1x, */\\\\n url(./img\\\\\\\\'\\\\\\\\'\\\\\\\\'img.png) 2x,\\\\n url(./img\\\\\\\\'img.png) 3x,\\\\n url(./img\\\\\\\\(img.png) 4x,\\\\n url(./img\\\\\\\\)img.png) 5x,\\\\n url(./img\\\\\\\\ img.png) 6x,\\\\n url(./img\\\\\\\\'\\\\\\\\(\\\\\\\\)\\\\\\\\ img.png) 7x\\\\n );\\\\n}\\\\n\\\\n.class-class-class {\\\\n background: url(\\\\\\"./img'''img.png\\\\\\");\\\\n background: url(\\\\\\"./img'() img.png\\\\\\");\\\\n background: url(\\\\\\"./img'img.png\\\\\\");\\\\n background: url(\\\\\\"./img(img.png\\\\\\");\\\\n background: url(\\\\\\"./img)img.png\\\\\\");\\\\n background: url('./img img.png');\\\\n background: url(\\\\\\"./img img.png\\\\\\");\\\\n}\\\\n\\\\n.class.class.class {\\\\n background: url('./img\\\\\\\\\\\\n(img.png');\\\\n background: url('./img\\\\\\\\\\\\n\\\\\\\\\\\\n\\\\\\\\\\\\n\\\\\\\\\\\\n(img.png');\\\\n}\\\\n\\\\n.other-test-case {\\\\n background: url(\\\\\\"./img%27%27%27img.png\\\\\\");\\\\n background: url(\\\\\\"./img%27%28%29%20img.png\\\\\\");\\\\n background: url(\\\\\\"./img%27img.png\\\\\\");\\\\n background: url(\\\\\\"./img%28img.png\\\\\\");\\\\n background: url(\\\\\\"./img%29img.png\\\\\\");\\\\n background: url(\\\\\\"./img%20img.png\\\\\\");\\\\n background: url(./img%27%27%27img.png);\\\\n background: url(./img%27%28%29%20img.png);\\\\n background: url(./img%27img.png);\\\\n background: url(./img%28img.png);\\\\n background: url(./img%29img.png);\\\\n background: url(./img%20img.png);\\\\n}\\\\n\\\\n.qqq {\\\\n background: url('img.png');\\\\n}\\\\n\\\\n.www {\\\\n background: url(\\\\\\"./img\\\\\\\\'\\\\\\\\'\\\\\\\\'img.png\\\\\\");\\\\n background: url(\\\\\\"./img\\\\\\\\'\\\\\\\\(\\\\\\\\)\\\\\\\\ img.png\\\\\\");\\\\n background: url(\\\\\\"./img\\\\\\\\'img.png\\\\\\");\\\\n background: url(\\\\\\"./img\\\\\\\\(img.png\\\\\\");\\\\n background: url(\\\\\\"./img\\\\\\\\)img.png\\\\\\");\\\\n background: url(\\\\\\"./img\\\\\\\\ img.png\\\\\\");\\\\n background: url(\\\\\\"./\\\\\\\\69\\\\\\\\6D\\\\\\\\67.png\\\\\\");\\\\n background: url(./\\\\\\\\69\\\\\\\\6D\\\\\\\\67.png);\\\\n background: url(\\\\\\"./img\\\\\\\\27img.png\\\\\\");\\\\n background: url(\\\\\\"./img\\\\\\\\'\\\\\\\\28%29 img.png\\\\\\");\\\\n background: url(./img\\\\\\\\'\\\\\\\\28%29\\\\\\\\ img.png);\\\\n}\\\\n\\", \\"\\"]); // Exports @@ -1397,7 +1397,7 @@ var ___CSS_LOADER_URL_IMPORT_24___ = require(\\"./img(img.png\\"); var ___CSS_LOADER_URL_IMPORT_25___ = require(\\"./img)img.png\\"); var ___CSS_LOADER_URL_IMPORT_26___ = require(\\"./img'() img.png\\"); exports = ___CSS_LOADER_API_IMPORT___(false); -exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___, \\"\\", true); var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___, { hash: \\"#hash\\" }); var ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);