@@ -723,6 +723,176 @@ 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.woff2\\ ";
734+ import ___CSS_LOADER_URL_IMPORT_2___ from \\ "./fonts/Roboto-Regular.woff\\ ";
735+ import ___CSS_LOADER_URL_IMPORT_3___ from \\ "./fonts/Roboto-Regular.ttf\\ ";
736+ import ___CSS_LOADER_URL_IMPORT_4___ from \\ "./fonts/Roboto-Regular.svg\\ ";
737+ import ___CSS_LOADER_URL_IMPORT_5___ from \\ "./fonts/Roboto-Regular.eot\\ ";
738+ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){ return i [1 ]} );
739+ var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
740+ var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);
741+ var ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);
742+ var ___CSS_LOADER_URL_REPLACEMENT_3___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_3___);
743+ var ___CSS_LOADER_URL_REPLACEMENT_4___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_4___, { hash : \\" #Roboto-Regular\\ " } );
744+ var ___CSS_LOADER_URL_REPLACEMENT_5___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_5___);
745+ var ___CSS_LOADER_URL_REPLACEMENT_6___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_5___, { hash : \\" #iefix\\ " } );
746+ // Module
747+ ___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\\\\\\"), url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\\\n.class {\\\\n color: red;\\\\n /** webpackIgnore: true */\\\\n background: url(\\\\\\"./url/img.png\\\\\\"), 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:\\\\n /** webpackIgnore: true **/\\\\n url(\\\\\\"./fonts/Roboto-Regular.eot#iefix\\\\\\") format(\\\\\\"embedded-opentype\\\\\\"),\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_1___ + \\") format(\\\\\\"woff\\\\\\"),\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_2___ + \\") format(\\\\\\"woff\\\\\\"),\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_3___ + \\") format(\\\\\\"truetype\\\\\\"),\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_4___ + \\") 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 /** webpackIgnore: true **/\\\\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: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_5___ + \\");\\\\n src:\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_6___ + \\") format(\\\\\\"embedded-opentype\\\\\\"),\\\\n /** webpackIgnore: true **/\\\\n url(\\\\\\"./fonts/Roboto-Regular.woff2\\\\\\") format(\\\\\\"woff\\\\\\"),\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_2___ + \\") 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 );\\\\n}\\\\n\\\\n.class {\\\\n /*webpackIgnore: true*/\\\\n background-image: image-set(\\\\n url(./url/img.png) 2x,\\\\n url(./url/img.png) 3x,\\\\n url(./url/img.png) 4x\\\\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 );\\\\n}\\\\n\\\\n.class {\\\\n background-image: image-set(\\\\n /*webpackIgnore: true*/\\\\n url(./url/img.png) 2x,\\\\n url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\") 3x,\\\\n /*webpackIgnore: true*/\\\\n url(./url/img.png) 5x\\\\n );\\\\n}\\\\n\\", \\"\\"]);
748+ // Exports
749+ export default ___CSS_LOADER_EXPORT___;
750+ "
751+ ` ;
752+
753+ exports [` loader should work with webpackIgnore comment: result 1` ] = `
754+ Array [
755+ Array [
756+ "./webpackIgnore.css",
757+ "/*webpackIgnore: true*/
758+ @import url(./basic.css);
759+
760+ @import /* webpackIgnore: true */ url(./imported.css);
761+
762+ /** webpackIgnore: true **/
763+ @import url(./simple.css);
764+
765+ /** webpackIgnore: true */
766+ .class {
767+ color : red ;
768+ background : url (\\" ./url/img.png\\ " );
769+ }
770+
771+ .class {
772+ color : red ;
773+ background : /** webpackIgnore: true */ url (\\" ./url/img.png\\ " ), url (/ webpack / public / path / img .png );
774+ }
775+
776+ .class {
777+ color : red ;
778+ /** webpackIgnore: true */
779+ background : url (\\" ./url/img.png\\ " ), url (\\" ./url/img.png\\ " );
780+ }
781+
782+ .class {
783+ background :
784+ url (/ webpack / public / path / img .png ),
785+ url (/ webpack / public / path / img .png ),
786+ /** webpackIgnore: true **/ url (\\" ./url/img.png\\ " ),
787+ url (/ webpack / public / path / img .png ),
788+ /** webpackIgnore: true **/ url (\\" ./url/img.png\\ " ),
789+ url (/ webpack / public / path / img .png ),
790+ url (/ webpack / public / path / img .png ),
791+ url (/ webpack / public / path / img .png ),
792+ /** webpackIgnore: true **/
793+ url (\\" ./url/img.png\\ " );
794+ }
795+
796+ /** webpackIgnore: true **/
797+ @font-face {
798+ font - family : \\" Roboto\\ " ;
799+ src : url (\\" ./fonts/Roboto-Regular.eot\\ " );
800+ src :
801+ url (\\" ./fonts/Roboto-Regular.eot#iefix\\ " ) format (\\" embedded-opentype\\ " ),
802+ url (\\" ./fonts/Roboto-Regular.woff2\\ " ) format (\\" woff\\ " ),
803+ url (\\" ./fonts/Roboto-Regular.woff\\ " ) format (\\" woff\\ " ),
804+ url (\\" ./fonts/Roboto-Regular.ttf\\ " ) format (\\" truetype\\ " ),
805+ url (\\" ./fonts/Roboto-Regular.svg#Roboto-Regular\\ " ) format (\\" svg\\ " );
806+ font - weight : 400 ;
807+ font - style : normal ;
808+ }
809+
810+ @font-face {
811+ font - family : \\" Roboto\\ " ;
812+ src : /** webpackIgnore: true **/ url (\\" ./fonts/Roboto-Regular.eot\\ " );
813+ src :
814+ /** webpackIgnore: true **/
815+ url (\\" ./fonts/Roboto-Regular.eot#iefix\\ " ) format (\\" embedded-opentype\\ " ),
816+ url (/ webpack / public / path / Roboto - Regular .woff2 ) format (\\" woff\\ " ),
817+ url (/ webpack / public / path / Roboto - Regular .woff ) format (\\" woff\\ " ),
818+ url (/ webpack / public / path / Roboto - Regular .ttf ) format (\\" truetype\\ " ),
819+ url (/ webpack / public / path / Roboto - Regular .svg #Roboto - Regular ) format (\\" svg\\ " );
820+ font - weight : 400 ;
821+ font - style : normal ;
822+ }
823+
824+ @font-face {
825+ font - family : \\" Roboto\\ " ;
826+ src : /** webpackIgnore: true **/ url (\\" ./fonts/Roboto-Regular.eot\\ " );
827+ /** webpackIgnore: true **/
828+ src :
829+ url (\\" ./fonts/Roboto-Regular.eot#iefix\\ " ) format (\\" embedded-opentype\\ " ),
830+ url (\\" ./fonts/Roboto-Regular.woff2\\ " ) format (\\" woff\\ " ),
831+ url (\\" ./fonts/Roboto-Regular.woff\\ " ) format (\\" woff\\ " ),
832+ url (\\" ./fonts/Roboto-Regular.ttf\\ " ) format (\\" truetype\\ " ),
833+ url (\\" ./fonts/Roboto-Regular.svg#Roboto-Regular\\ " ) format (\\" svg\\ " );
834+ font - weight : 400 ;
835+ font - style : normal ;
836+ }
837+
838+ @font-face {
839+ font - family : \\" Roboto\\ " ;
840+ src : url (/ webpack / public / path / Roboto - Regular .eot );
841+ src :
842+ url (/ webpack / public / path / Roboto - Regular .eot #iefix ) format (\\" embedded-opentype\\ " ),
843+ /** webpackIgnore: true **/
844+ url (\\" ./fonts/Roboto-Regular.woff2\\ " ) format (\\" woff\\ " ),
845+ url (/ webpack / public / path / Roboto - Regular .woff ) format (\\" woff\\ " ),
846+ /** webpackIgnore: true **/
847+ url (\\" ./fonts/Roboto-Regular.ttf\\ " ) format (\\" truetype\\ " ),
848+ url (/ webpack / public / path / Roboto - Regular .svg #Roboto - Regular ) format (\\" svg\\ " );
849+ font - weight : 400 ;
850+ font - style : normal ;
851+ }
852+
853+ /*webpackIgnore: true*/
854+ .class {
855+ background - image : image - set (
856+ url (./ url/ img .png ) 2x ,
857+ url (./ url/ img .png ) 3x ,
858+ url (./ url/ img .png ) 4x
859+ );
860+ }
861+
862+ .class {
863+ /* webpackIgnore: true*/
864+ background - image : image - set (
865+ url (./ url/ img .png ) 2x ,
866+ url (./ url/ img .png ) 3x ,
867+ url (./ url/ img .png ) 4x
868+ );
869+ }
870+
871+ .class {
872+ background - image : /* webpackIgnore: true*/ image - set (
873+ url (./ url/ img .png ) 2x ,
874+ url (./ url/ img .png ) 3x ,
875+ url (./ url/ img .png ) 4x
876+ );
877+ }
878+
879+ .class {
880+ background - image : image - set (
881+ /* webpackIgnore: true*/
882+ url (./ url/ img .png ) 2x ,
883+ url (/ webpack / public / path / img .png ) 3x ,
884+ /* webpackIgnore: true*/
885+ url (./ url/ img .png ) 5x
886+ );
887+ }
888+ ",
889+ "",
890+ ],
891+ ]
892+ ` ;
893+
894+ exports [` loader should work with webpackIgnore comment: warnings 1` ] = ` Array []` ;
895+
726896exports [` loader should work: errors 1` ] = ` Array []` ;
727897
728898exports [` loader should work: module 1` ] = `
0 commit comments