From 33ce6a73f7e9db2f5a358d2178ce95ac9a0a2e0c Mon Sep 17 00:00:00 2001 From: Andrey Platov <87076238+aplatoff@users.noreply.github.com> Date: Wed, 24 Nov 2021 10:45:09 +0100 Subject: [PATCH] Fix Webpack build (#354) Signed-off-by: Andrey Platov Co-authored-by: Andrey Sobolev --- dev/prod/package.json | 2 +- dev/prod/public/index.html | 1 - dev/prod/webpack.config.js | 16 ---------------- 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/dev/prod/package.json b/dev/prod/package.json index 0ecf7b9157..57d715cfac 100644 --- a/dev/prod/package.json +++ b/dev/prod/package.json @@ -3,7 +3,7 @@ "version": "1.0.1", "license": "EPL-2.0", "scripts": { - "build": "cross-env NODE_ENV=development webpack --stats-error-details && echo 'done'", + "build": "cross-env NODE_ENV=production webpack --stats-error-details && echo 'done'", "analyze": "cross-env NODE_ENV=production webpack --json > stats.json", "show": "webpack-bundle-analyzer stats.json dist", "dev": "cross-env CLIENT_TYPE=dev webpack serve --content-base public", diff --git a/dev/prod/public/index.html b/dev/prod/public/index.html index c7bf9124d2..1474b2b6f8 100644 --- a/dev/prod/public/index.html +++ b/dev/prod/public/index.html @@ -12,7 +12,6 @@ - diff --git a/dev/prod/webpack.config.js b/dev/prod/webpack.config.js index b9e225351e..6635ace3fe 100644 --- a/dev/prod/webpack.config.js +++ b/dev/prod/webpack.config.js @@ -45,22 +45,6 @@ module.exports = { chunkFilename: '[name].[id].js', publicPath: '/' }, - optimization: { - minimize: prod, - usedExports: prod, - splitChunks: { - chunks: 'all', - maxAsyncRequests: 5, - maxInitialRequests: 3, - cacheGroups: { - vendors: { - name: 'vendors', - test: /[\\/]node_modules[\\/]/, - priority: 20 - } - } - } - }, module: { rules: [ {