Skip to content

Commit 184810d

Browse files
committed
fix indentation with tabs
1 parent b4a620d commit 184810d

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

lib/processCss.js

+26-26
Original file line numberDiff line numberDiff line change
@@ -78,29 +78,29 @@ var parserPlugin = postcss.plugin("css-loader-parser", function(options) {
7878
});
7979

8080
function processNode(item, isValue) {
81-
switch (item.type) {
81+
switch (item.type) {
8282
case "value":
83-
item.nodes.forEach(function(node){
83+
item.nodes.forEach(function(node){
8484
processNode(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){
8989
processNode(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

105105
if(isValue) {
106106
if(loaderUtils.isUrlRequest(url, options.root) && options.mode === "global") {
@@ -112,14 +112,14 @@ var parserPlugin = postcss.plugin("css-loader-parser", function(options) {
112112
url = 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

124124
css.walkDecls(function(decl) {
125125
var values = Tokenizer.parseValues(decl.value);

0 commit comments

Comments
 (0)