@@ -78,29 +78,29 @@ var parserPlugin = postcss.plugin("css-loader-parser", function(options) {
7878} ) ;
7979
8080function processNode ( item , isValue ) {
81- switch ( item . type ) {
81+ switch ( item . type ) {
8282case "value" :
83- item . nodes . forEach ( function ( node ) {
83+ item . nodes . forEach ( function ( node ) {
8484processNode ( node , true ) ;
8585} ) ;
86- break ;
87- case "nested-item" :
88- item . nodes . forEach ( function ( node ) {
86+ break ;
87+ case "nested-item" :
88+ item . nodes . forEach ( function ( node ) {
8989processNode ( node ) ;
9090} ) ;
91- break ;
92- case "item" :
93- var importIndex = imports [ "$" + item . name ] ;
94- if ( typeof importIndex === "number" ) {
95- item . name = "___CSS_LOADER_IMPORT___" + importIndex + "___" ;
96- }
97- break ;
98- case "url" :
99- if ( ! / ^ # / . test ( item . url ) && loaderUtils . isUrlRequest ( item . url , options . root ) ) {
100- item . stringType = "" ;
101- delete item . innerSpacingBefore ;
102- delete item . innerSpacingAfter ;
103- var url ;
91+ break ;
92+ case "item" :
93+ var importIndex = imports [ "$" + item . name ] ;
94+ if ( typeof importIndex === "number" ) {
95+ item . name = "___CSS_LOADER_IMPORT___" + importIndex + "___" ;
96+ }
97+ break ;
98+ case "url" :
99+ if ( ! / ^ # / . test ( item . url ) && loaderUtils . isUrlRequest ( item . url , options . root ) ) {
100+ item . stringType = "" ;
101+ delete item . innerSpacingBefore ;
102+ delete item . innerSpacingAfter ;
103+ var url ;
104104
105105if ( isValue ) {
106106if ( loaderUtils . isUrlRequest ( url , options . root ) && options . mode === "global" ) {
@@ -112,14 +112,14 @@ var parserPlugin = postcss.plugin("css-loader-parser", function(options) {
112112url = item . url ;
113113}
114114
115- item . url = "___CSS_LOADER_URL___" + urlItems . length + "___" ;
116- urlItems . push ( {
117- url : url
118- } ) ;
119- }
120- break ;
121- }
122- }
115+ item . url = "___CSS_LOADER_URL___" + urlItems . length + "___" ;
116+ urlItems . push ( {
117+ url : url
118+ } ) ;
119+ }
120+ break ;
121+ }
122+ }
123123
124124css . walkDecls ( function ( decl ) {
125125var values = Tokenizer . parseValues ( decl . value ) ;
0 commit comments