Fix Webpack build (#354)

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
Co-authored-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Platov 2021-11-24 10:45:09 +01:00 committed by GitHub
parent 2c738eb62a
commit 33ce6a73f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 18 deletions

View File

@ -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",

View File

@ -12,7 +12,6 @@
</head>
<body style="margin: 0; overflow: hidden;">
<script src='/vendors.js'></script>
<script src='/bundle.js'></script>
</body>

View File

@ -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: [
{