@@ -723,6 +723,152 @@ exports[`loader should work with the "modules.auto" option and the "importLoader
723723
724724exports [` loader should work with the "modules.auto" option and the "importLoaders" option: warnings 1` ] = ` Array []` ;
725725
726+ exports [` loader should work with webpackIgnore comment: errors 1` ] = ` Array []` ;
727+
728+ exports [` loader should work with webpackIgnore comment: module 1` ] = `
729+ "// Imports
730+ import ___CSS_LOADER_API_IMPORT___ from \\ "../../src/runtime/api.js\\ ";
731+ import ___CSS_LOADER_GET_URL_IMPORT___ from \\ "../../src/runtime/getUrl.js\\ ";
732+ import ___CSS_LOADER_URL_IMPORT_0___ from \\ "./url/img.png\\ ";
733+ import ___CSS_LOADER_URL_IMPORT_1___ from \\ "./fonts/Roboto-Regular.eot\\ ";
734+ import ___CSS_LOADER_URL_IMPORT_2___ from \\ "./fonts/Roboto-Regular.woff\\ ";
735+ import ___CSS_LOADER_URL_IMPORT_3___ from \\ "./fonts/Roboto-Regular.svg\\ ";
736+ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){ return i [1 ]} );
737+ var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
738+ var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);
739+ var ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___, { hash : \\" #iefix\\ " } );
740+ var ___CSS_LOADER_URL_REPLACEMENT_3___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);
741+ var ___CSS_LOADER_URL_REPLACEMENT_4___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_3___, { hash : \\" #Roboto-Regular\\ " } );
742+ // Module
743+ ___CSS_LOADER_EXPORT___.push([module.id, \\"/*webpackIgnore: true*/\\\\n@import url(./basic.css);\\\\n\\\\n@import /* webpackIgnore: true */ url(./imported.css);\\\\n\\\\n/** webpackIgnore: true **/\\\\n@import url(./simple.css);\\\\n\\\\n/** webpackIgnore: true */\\\\n.class {\\\\n color: red;\\\\n background: url(\\\\\\"./url/img.png\\\\\\");\\\\n}\\\\n\\\\n.class {\\\\n color: red;\\\\n background: /** webpackIgnore: true */ url(\\\\\\"./url/img.png\\\\\\");\\\\n}\\\\n\\\\n.class {\\\\n background:\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\"),\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\"),\\\\n /** webpackIgnore: true **/ url(\\\\\\"./url/img.png\\\\\\"),\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\"),\\\\n /** webpackIgnore: true **/ url(\\\\\\"./url/img.png\\\\\\"),\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\"),\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\"),\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\"),\\\\n /** webpackIgnore: true **/\\\\n url(\\\\\\"./url/img.png\\\\\\");\\\\n}\\\\n\\\\n/** webpackIgnore: true **/\\\\n@font-face {\\\\n font-family: \\\\\\"Roboto\\\\\\";\\\\n src: url(\\\\\\"./fonts/Roboto-Regular.eot\\\\\\");\\\\n src:\\\\n url(\\\\\\"./fonts/Roboto-Regular.eot#iefix\\\\\\") format(\\\\\\"embedded-opentype\\\\\\"),\\\\n url(\\\\\\"./fonts/Roboto-Regular.woff2\\\\\\") format(\\\\\\"woff\\\\\\"),\\\\n url(\\\\\\"./fonts/Roboto-Regular.woff\\\\\\") format(\\\\\\"woff\\\\\\"),\\\\n url(\\\\\\"./fonts/Roboto-Regular.ttf\\\\\\") format(\\\\\\"truetype\\\\\\"),\\\\n url(\\\\\\"./fonts/Roboto-Regular.svg#Roboto-Regular\\\\\\") format(\\\\\\"svg\\\\\\");\\\\n font-weight: 400;\\\\n font-style: normal;\\\\n}\\\\n\\\\n@font-face {\\\\n font-family: \\\\\\"Roboto\\\\\\";\\\\n src: /** webpackIgnore: true **/ url(\\\\\\"./fonts/Roboto-Regular.eot\\\\\\");\\\\n src: /** webpackIgnore: true **/\\\\n url(\\\\\\"./fonts/Roboto-Regular.eot#iefix\\\\\\") format(\\\\\\"embedded-opentype\\\\\\"),\\\\n url(\\\\\\"./fonts/Roboto-Regular.woff2\\\\\\") format(\\\\\\"woff\\\\\\"),\\\\n url(\\\\\\"./fonts/Roboto-Regular.woff\\\\\\") format(\\\\\\"woff\\\\\\"),\\\\n url(\\\\\\"./fonts/Roboto-Regular.ttf\\\\\\") format(\\\\\\"truetype\\\\\\"),\\\\n url(\\\\\\"./fonts/Roboto-Regular.svg#Roboto-Regular\\\\\\") format(\\\\\\"svg\\\\\\");\\\\n font-weight: 400;\\\\n font-style: normal;\\\\n}\\\\n\\\\n@font-face {\\\\n font-family: \\\\\\"Roboto\\\\\\";\\\\n src: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_1___ + \\");\\\\n src:\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_2___ + \\") format(\\\\\\"embedded-opentype\\\\\\"),\\\\n /** webpackIgnore: true **/\\\\n url(\\\\\\"./fonts/Roboto-Regular.woff2\\\\\\") format(\\\\\\"woff\\\\\\"),\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_3___ + \\") format(\\\\\\"woff\\\\\\"),\\\\n /** webpackIgnore: true **/\\\\n url(\\\\\\"./fonts/Roboto-Regular.ttf\\\\\\") format(\\\\\\"truetype\\\\\\"),\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_4___ + \\") format(\\\\\\"svg\\\\\\");\\\\n font-weight: 400;\\\\n font-style: normal;\\\\n}\\\\n\\\\n/*webpackIgnore: true*/\\\\n.class {\\\\n background-image: image-set(\\\\n url(./url/img.png) 2x,\\\\n url(./url/img.png) 3x,\\\\n url(./url/img.png) 4x,\\\\n url(./url/img.png) 5x,\\\\n url(./url/img.png) 6x,\\\\n url(./url/img.png) 7x\\\\n );\\\\n}\\\\n\\\\n.class {\\\\n background-image: /*webpackIgnore: true*/ image-set(\\\\n url(./url/img.png) 2x,\\\\n url(./url/img.png) 3x,\\\\n url(./url/img.png) 4x,\\\\n url(./url/img.png) 5x,\\\\n url(./url/img.png) 6x,\\\\n url(./url/img.png) 7x\\\\n );\\\\n}\\\\n\\\\n.class {\\\\n background-image: image-set(\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\") 2x,\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\") 3x,\\\\n /*webpackIgnore: true*/\\\\n url(./url/img.png) 4x,\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\") 5x,\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\") 6x,\\\\n /*webpackIgnore: true*/\\\\n url(./url/img.png) 7x\\\\n );\\\\n}\\\\n\\\\n\\", \\"\\"]);
744+ // Exports
745+ export default ___CSS_LOADER_EXPORT___;
746+ "
747+ ` ;
748+
749+ exports [` loader should work with webpackIgnore comment: result 1` ] = `
750+ Array [
751+ Array [
752+ "./webpackIgnore.css",
753+ "/*webpackIgnore: true*/
754+ @import url(./basic.css);
755+
756+ @import /* webpackIgnore: true */ url(./imported.css);
757+
758+ /** webpackIgnore: true **/
759+ @import url(./simple.css);
760+
761+ /** webpackIgnore: true */
762+ .class {
763+ color : red ;
764+ background : url (\\" ./url/img.png\\ " );
765+ }
766+
767+ .class {
768+ color : red ;
769+ background : /** webpackIgnore: true */ url (\\" ./url/img.png\\ " );
770+ }
771+
772+ .class {
773+ background :
774+ url (/ webpack / public / path / img .png ),
775+ url (/ webpack / public / path / img .png ),
776+ /** webpackIgnore: true **/ url (\\" ./url/img.png\\ " ),
777+ url (/ webpack / public / path / img .png ),
778+ /** webpackIgnore: true **/ url (\\" ./url/img.png\\ " ),
779+ url (/ webpack / public / path / img .png ),
780+ url (/ webpack / public / path / img .png ),
781+ url (/ webpack / public / path / img .png ),
782+ /** webpackIgnore: true **/
783+ url (\\" ./url/img.png\\ " );
784+ }
785+
786+ /** webpackIgnore: true **/
787+ @font-face {
788+ font - family : \\" Roboto\\ " ;
789+ src : url (\\" ./fonts/Roboto-Regular.eot\\ " );
790+ src :
791+ url (\\" ./fonts/Roboto-Regular.eot#iefix\\ " ) format (\\" embedded-opentype\\ " ),
792+ url (\\" ./fonts/Roboto-Regular.woff2\\ " ) format (\\" woff\\ " ),
793+ url (\\" ./fonts/Roboto-Regular.woff\\ " ) format (\\" woff\\ " ),
794+ url (\\" ./fonts/Roboto-Regular.ttf\\ " ) format (\\" truetype\\ " ),
795+ url (\\" ./fonts/Roboto-Regular.svg#Roboto-Regular\\ " ) format (\\" svg\\ " );
796+ font - weight : 400 ;
797+ font - style : normal ;
798+ }
799+
800+ @font-face {
801+ font - family : \\" Roboto\\ " ;
802+ src : /** webpackIgnore: true **/ url (\\" ./fonts/Roboto-Regular.eot\\ " );
803+ src : /** webpackIgnore: true **/
804+ url (\\" ./fonts/Roboto-Regular.eot#iefix\\ " ) format (\\" embedded-opentype\\ " ),
805+ url (\\" ./fonts/Roboto-Regular.woff2\\ " ) format (\\" woff\\ " ),
806+ url (\\" ./fonts/Roboto-Regular.woff\\ " ) format (\\" woff\\ " ),
807+ url (\\" ./fonts/Roboto-Regular.ttf\\ " ) format (\\" truetype\\ " ),
808+ url (\\" ./fonts/Roboto-Regular.svg#Roboto-Regular\\ " ) format (\\" svg\\ " );
809+ font - weight : 400 ;
810+ font - style : normal ;
811+ }
812+
813+ @font-face {
814+ font - family : \\" Roboto\\ " ;
815+ src : url (/ webpack / public / path / Roboto - Regular .eot );
816+ src :
817+ url (/ webpack / public / path / Roboto - Regular .eot #iefix ) format (\\" embedded-opentype\\ " ),
818+ /** webpackIgnore: true **/
819+ url (\\" ./fonts/Roboto-Regular.woff2\\ " ) format (\\" woff\\ " ),
820+ url (/ webpack / public / path / Roboto - Regular .woff ) format (\\" woff\\ " ),
821+ /** webpackIgnore: true **/
822+ url (\\" ./fonts/Roboto-Regular.ttf\\ " ) format (\\" truetype\\ " ),
823+ url (/ webpack / public / path / Roboto - Regular .svg #Roboto - Regular ) format (\\" svg\\ " );
824+ font - weight : 400 ;
825+ font - style : normal ;
826+ }
827+
828+ /*webpackIgnore: true*/
829+ .class {
830+ background - image : image - set (
831+ url (./ url/ img .png ) 2x ,
832+ url (./ url/ img .png ) 3x ,
833+ url (./ url/ img .png ) 4x ,
834+ url (./ url/ img .png ) 5x ,
835+ url (./ url/ img .png ) 6x ,
836+ url (./ url/ img .png ) 7x
837+ );
838+ }
839+
840+ .class {
841+ background - image : /* webpackIgnore: true*/ image - set (
842+ url (./ url/ img .png ) 2x ,
843+ url (./ url/ img .png ) 3x ,
844+ url (./ url/ img .png ) 4x ,
845+ url (./ url/ img .png ) 5x ,
846+ url (./ url/ img .png ) 6x ,
847+ url (./ url/ img .png ) 7x
848+ );
849+ }
850+
851+ .class {
852+ background - image : image - set (
853+ url (/ webpack / public / path / img .png ) 2x ,
854+ url (/ webpack / public / path / img .png ) 3x ,
855+ /* webpackIgnore: true*/
856+ url (./ url/ img .png ) 4x ,
857+ url (/ webpack / public / path / img .png ) 5x ,
858+ url (/ webpack / public / path / img .png ) 6x ,
859+ /* webpackIgnore: true*/
860+ url (./ url/ img .png ) 7x
861+ );
862+ }
863+
864+ ",
865+ "",
866+ ],
867+ ]
868+ ` ;
869+
870+ exports [` loader should work with webpackIgnore comment: warnings 1` ] = ` Array []` ;
871+
726872exports [` loader should work: errors 1` ] = ` Array []` ;
727873
728874exports [` loader should work: module 1` ] = `
0 commit comments