fix(extractCSS): provide chunkFilename option

This commit is contained in:
Pooya Parsa 2018-03-28 23:25:36 +04:30
parent 7f6b7d8588
commit ec5bdd98e3

View File

@ -220,7 +220,8 @@ export default class WebpackBaseConfig {
// So we use css-loader/locals as a fallback (utils/style-loader)
if (this.options.build.extractCSS && !this.isServer) {
plugins.push(new MiniCssExtractPlugin(Object.assign({
filename: this.getFileName('css')
filename: this.getFileName('css'),
chunkFilename: this.getFileName('css')
}, this.options.build.extractCSS)))
}