chore: add plugin suffix for ExtractCssChunksPlugin (#4528)

This commit is contained in:
Alexander Lichter 2018-12-11 20:56:28 +00:00 committed by Xin Du (Clark)
parent c6d820aad8
commit 88668f0fc4

View File

@ -5,7 +5,7 @@ import clone from 'lodash/clone'
import cloneDeep from 'lodash/cloneDeep'
import escapeRegExp from 'lodash/escapeRegExp'
import VueLoader from 'vue-loader'
import ExtractCssChunks from 'extract-css-chunks-webpack-plugin'
import ExtractCssChunksPlugin from 'extract-css-chunks-webpack-plugin'
import HardSourcePlugin from 'hard-source-webpack-plugin'
import TerserWebpackPlugin from 'terser-webpack-plugin'
import WebpackBar from 'webpackbar'
@ -345,7 +345,7 @@ export default class WebpackBaseConfig {
// CSS extraction)
if (this.options.build.extractCSS) {
plugins.push(new ExtractCssChunks(Object.assign({
plugins.push(new ExtractCssChunksPlugin(Object.assign({
filename: this.getFileName('css'),
chunkFilename: this.getFileName('css'),
// TODO: https://github.com/faceyspacey/extract-css-chunks-webpack-plugin/issues/132