File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
test/cases/function-publicpath Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,9 @@ const MiniCssExtractPlugin = require("mini-css-extract-plugin");
90
90
module .exports = {
91
91
plugins: [
92
92
new MiniCssExtractPlugin ({
93
- // Options similar to the same options in webpackOptions.output
94
- // both options are optional
95
- filename: " [name].css" ,
93
+ // Filename includes [path] so we use the publicPath function (below) to dynamically
94
+ // create publicPath relative to the source CSS file.
95
+ filename: " [path]/[ name].css" ,
96
96
chunkFilename: " [id].css"
97
97
})
98
98
],
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ module.exports = {
29
29
} ,
30
30
plugins : [
31
31
new Self ( {
32
- filename : '[name].css' ,
32
+ filename : '[path]/[ name].css' ,
33
33
} ) ,
34
34
] ,
35
35
} ;
You can’t perform that action at this time.
0 commit comments