From eb814deb10de12ae9fac0455afe95c37e7831196 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 14 Feb 2021 16:19:03 +0100 Subject: [PATCH] Fixed Webpack build for overrides --- webpack.config.ts | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/webpack.config.ts b/webpack.config.ts index 099a864d5..1a1d1463f 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -372,7 +372,7 @@ export default (_env: never, args: Configuration): Configuration[] => { splitChunks: { cacheGroups: { vendor: { - test: /[\\/]node_modules[\\/]/, + test: /\/node_modules\//, name: "assets/javascripts/vendor", chunks: "all" } @@ -417,20 +417,21 @@ export default (_env: never, args: Configuration): Configuration[] => { /* Stylesheets */ new MiniCssExtractPlugin({ filename: `[name]${hash}.css` - }), + }) ], /* Optimizations */ optimization: { - splitChunks: { - cacheGroups: { - vendor: { - test: /[\\/]node_modules[\\/]/, - name: "overrides/assets/javascripts/vendor", - chunks: "all" - } - } - } + // minimize: false, + // splitChunks: { + // cacheGroups: { + // vendor: { + // test: /\/node_modules\//, + // name: "overrides/assets/javascripts/vendor", + // chunks: "all" + // } + // } + // } } } ]