We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fab158d commit 22efab1Copy full SHA for 22efab1
README.md
@@ -90,9 +90,9 @@ const MiniCssExtractPlugin = require("mini-css-extract-plugin");
90
module.exports = {
91
plugins: [
92
new MiniCssExtractPlugin({
93
- // Options similar to the same options in webpackOptions.output
94
- // both options are optional
95
- filename: "[name].css",
+ // Filename includes [path] so we use the publicPath function (below) to dynamically
+ // create publicPath relative to the source CSS file.
+ filename: "[path]/[name].css",
96
chunkFilename: "[id].css"
97
})
98
],
test/cases/function-publicpath/webpack.config.js
@@ -29,7 +29,7 @@ module.exports = {
29
},
30
31
new Self({
32
- filename: '[name].css',
+ filename: '[path]/[name].css',
33
}),
34
35
};
0 commit comments