File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -325,15 +325,23 @@ class MiniCssExtractPlugin {
325
325
source ,
326
326
'' ,
327
327
`// ${ pluginName } CSS loading` ,
328
- `var fetchRTL = !!window['${ this . options . globalRTLFlag } '];` ,
328
+ `var fetchRTL = ${
329
+ this . options . globalRTLFlag
330
+ ? `window['${ this . options . globalRTLFlag } ']`
331
+ : false
332
+ } ;`,
329
333
`var cssChunks = ${ JSON . stringify ( chunkMap ) } ;` ,
330
334
'if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);' ,
331
335
'else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {' ,
332
336
Template . indent ( [
333
337
'promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {' ,
334
338
Template . indent ( [
335
339
`var href = ${ linkHrefPath } ;` ,
336
- `var fullhref = ${ this . options . outputPublicPath ? `'${ this . options . outputPublicPath } '` : `${ mainTemplate . requireFn } .p` } + href;` ,
340
+ `var fullhref = ${
341
+ this . options . outputPublicPath
342
+ ? `'${ this . options . outputPublicPath } '`
343
+ : `${ mainTemplate . requireFn } .p`
344
+ } + href;`,
337
345
'if (fetchRTL) {' ,
338
346
Template . indent ( [
339
347
`fullhref = fullhref.replace(/\\.css/i, '.rtl.css');` ,
You can’t perform that action at this time.
0 commit comments