Skip to content

Commit

Permalink
re arrange and update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ashrafali-v committed Aug 1, 2022
1 parent 7980377 commit ea34ab1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions packages/core/build/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,6 @@ const plugins = ({ base, is_test_env, env }) => {
new PreloadWebpackPlugin(htmlPreloadConfig()),
new IgnorePlugin({ resourceRegExp: /^\.\/locale$/, contextRegExp: /moment$/ }),
new MiniCssExtractPlugin(cssConfig()),
new webpack.optimize.MinChunkSizePlugin({
minChunkSize: 102400, // ~100kb
}),
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 10,
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/core/build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ module.exports = function (env) {
maxAsyncRequests: 5,
maxInitialRequests: 3,
automaticNameDelimiter: '~',
enforceSizeThreshold: 500000,
cacheGroups: {
default: {
minChunks: 2,
minSize: 102400,
enforceSizeThreshold: 500000,
priority: -20,
reuseExistingChunk: true,
},
Expand Down

0 comments on commit ea34ab1

Please sign in to comment.