From aa1ad8115d9e98470e727c395e3f08e36b6e0e65 Mon Sep 17 00:00:00 2001 From: NI Date: Wed, 14 Aug 2019 13:13:35 +0800 Subject: [PATCH] I messed up the css compression, now it been fixed. --- webpack.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 96a4d44..beb607e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -335,11 +335,11 @@ module.exports = { } }), new MiniCssExtractPlugin({ - filename: "[hash]d.css", - chunkFilename: "[chunkhash]d.css" + filename: "[hash]__.css", + chunkFilename: "[chunkhash]__.css" }), new OptimizeCssAssetsPlugin({ - assetNameRegExp: /\.dist\.css$/g, + assetNameRegExp: /\_\_\.css$/g, cssProcessor: require("cssnano"), cssProcessorPluginOptions: { preset: ["default", { discardComments: { removeAll: true } }]