diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1,5 +1,6 @@ import * as path from 'path'; import MiniCssExtractPlugin from 'mini-css-extract-plugin'; +import RemoveEmptyScriptsPlugin from 'webpack-remove-empty-scripts'; import NotifierPlugin from 'webpack-notifier'; import ManifestPlugin from 'webpack-assets-manifest'; import StylelintPlugin from 'stylelint-webpack-plugin'; @@ -114,6 +115,7 @@ export const makeConfig = (env, argv, options) => { new CleanWebpackPlugin({ cleanStaleWebpackAssets: !isWatch }), + new RemoveEmptyScriptsPlugin(), new MiniCssExtractPlugin({ filename: 'css/[name].[contenthash:8].css', chunkFilename: '[id].[contenthash:8].css' |