File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -116,33 +116,33 @@ module.exports = postcss.plugin(pluginName, function(options) {
116
116
return ;
117
117
}
118
118
119
- const URLNode = node . nodes [ 0 ] ;
120
- const URL = URLNode . value . trim ( ) . replace ( / \\ [ \r \n ] / g, "" ) ;
119
+ const urlNode = node . nodes [ 0 ] ;
120
+ const url = urlNode . value . trim ( ) . replace ( / \\ [ \r \n ] / g, "" ) ;
121
121
122
122
// Skip empty URLs
123
123
// Empty URL function equals request to current stylesheet where it is declared
124
- if ( URL . length === 0 ) {
124
+ if ( url . length === 0 ) {
125
125
return ;
126
126
}
127
127
128
- if ( ! loaderUtils . isUrlRequest ( URL ) ) {
128
+ if ( ! loaderUtils . isUrlRequest ( url ) ) {
129
129
return ;
130
130
}
131
131
132
132
// Remove spaces before and after
133
133
node . before = "" ;
134
134
node . after = "" ;
135
135
136
- const splittedURL = URL . split ( / ( \? ) ? # / ) ;
136
+ const splittedURL = url . split ( / ( \? ) ? # / ) ;
137
137
const normalizedURL = splittedURL [ 0 ] ;
138
138
139
139
const requestedURL = loaderUtils . urlToRequest ( normalizedURL ) ;
140
140
const placeholder =
141
141
"___CSS_LOADER_IMPORT_URL_PLACEHOLDER___" + index + "___" ;
142
142
143
- URLNode . value = placeholder ;
143
+ urlNode . value = placeholder ;
144
144
// Strip quotes, they will be re-added if the module needs them
145
- URLNode . quote = "" ;
145
+ urlNode . quote = "" ;
146
146
147
147
let hasURLEscapeRuntimeCode = false ;
148
148
You can’t perform that action at this time.
0 commit comments