File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ class MiniCssExtractPlugin {
333
333
'promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {' ,
334
334
Template . indent ( [
335
335
`var href = ${ linkHrefPath } ;` ,
336
- `var fullhref = ${ mainTemplate . requireFn } .p + href;` ,
336
+ `var fullhref = ${ this . options . outputPublicPath ? `' ${ this . options . outputPublicPath } '` : ` ${ mainTemplate . requireFn } .p` } + href;` ,
337
337
'if (fetchRTL) {' ,
338
338
Template . indent ( [
339
339
`fullhref = fullhref.replace(/\\.css/i, '.rtl.css');` ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"additionalProperties" : true ,
3
3
"properties" : {
4
+ "globalRTLFlag" : {
5
+ "type" : " string"
6
+ },
7
+ "outputPublicPath" : {
8
+ "type" : " string"
9
+ },
4
10
"publicPath" : {
5
11
"anyOf" : [
6
12
{
10
16
"instanceof" : " Function"
11
17
}
12
18
]
13
- },
14
- "globalRTLFlag" : {
15
- "type" : " string"
16
19
}
17
20
},
18
21
"errorMessages" : {
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ module.exports = {
22
22
filename : '[name].client.css' ,
23
23
chunkFilename : '[name].chunk.client.css' ,
24
24
globalRTLFlag : 'rtlLanguageEnabled' ,
25
+ // outputPublicPath: '/bundles/css/',
25
26
} ) ,
26
27
new WebpackRtlPlugin ( ) ,
27
28
] ,
You can’t perform that action at this time.
0 commit comments