From d3484604363b39affc5ef9466d376fef177a41de Mon Sep 17 00:00:00 2001 From: Jens Duttke Date: Fri, 23 Nov 2018 08:18:55 +0100 Subject: [PATCH] Remove unnecessary setting of filename and chunkFilename in devMode Since the example don't use the plugin in devMode at all, there is no reason to have a special filename configuration for the devMode. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f072fc05..ec0936a1 100644 --- a/README.md +++ b/README.md @@ -94,8 +94,8 @@ module.exports = { new MiniCssExtractPlugin({ // Options similar to the same options in webpackOptions.output // both options are optional - filename: devMode ? '[name].css' : '[name].[hash].css', - chunkFilename: devMode ? '[id].css' : '[id].[hash].css', + filename: '[name].[hash].css', + chunkFilename: '[id].[hash].css', }) ], module: {