File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ class MiniCssExtractPlugin {
333333 'promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {' ,
334334 Template . indent ( [
335335 `var href = ${ linkHrefPath } ;` ,
336- `var fullhref = ${ mainTemplate . requireFn } .p + href;` ,
336+ `var fullhref = ${ this . options . outputPublicPath ? `' ${ this . options . outputPublicPath } '` : ` ${ mainTemplate . requireFn } .p` } + href;` ,
337337 'if (fetchRTL) {' ,
338338 Template . indent ( [
339339 `fullhref = fullhref.replace(/\\.css/i, '.rtl.css');` ,
Original file line number Diff line number Diff line change 11{
22 "additionalProperties" : true ,
33 "properties" : {
4+ "globalRTLFlag" : {
5+ "type" : " string"
6+ },
7+ "outputPublicPath" : {
8+ "type" : " string"
9+ },
410 "publicPath" : {
511 "anyOf" : [
612 {
1016 "instanceof" : " Function"
1117 }
1218 ]
13- },
14- "globalRTLFlag" : {
15- "type" : " string"
1619 }
1720 },
1821 "errorMessages" : {
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ module.exports = {
2222 filename : '[name].client.css' ,
2323 chunkFilename : '[name].chunk.client.css' ,
2424 globalRTLFlag : 'rtlLanguageEnabled' ,
25+ // outputPublicPath: '/bundles/css/',
2526 } ) ,
2627 new WebpackRtlPlugin ( ) ,
2728 ] ,
You can’t perform that action at this time.
0 commit comments