diff --git a/lib/builder/webpack/base.js b/lib/builder/webpack/base.js index 50fff3af78..06953fddb8 100644 --- a/lib/builder/webpack/base.js +++ b/lib/builder/webpack/base.js @@ -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))) }