mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-03 08:57:14 +03:00
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:
parent
2c738eb62a
commit
33ce6a73f7
@ -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",
|
||||
|
@ -12,7 +12,6 @@
|
||||
</head>
|
||||
|
||||
<body style="margin: 0; overflow: hidden;">
|
||||
<script src='/vendors.js'></script>
|
||||
<script src='/bundle.js'></script>
|
||||
</body>
|
||||
|
||||
|
@ -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: [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user