Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
fix(webpack): disable default chunk (#27)
Browse files Browse the repository at this point in the history
default chunk caused dynamic bundle loading error
  • Loading branch information
regalius authored Feb 26, 2019
1 parent ddd812c commit 92cb254
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/treats/scripts/config/webpack.config.client.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ module.exports = ({
devtool: env === "production" ? "none" : "source-map",
optimization: {
splitChunks: {
maxInitialRequests: Infinity,
minSize: 0,
automaticNameDelimiter: "-",
cacheGroups: {
default: false,
vendors: false,
vendor: {
test: /node_modules/,
chunks: "all",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ module.exports = ({
devtool: "cheap-eval-source-map",
optimization: {
splitChunks: {
maxInitialRequests: Infinity,
minSize: 0,
automaticNameDelimiter: "-",
cacheGroups: {
default: false,
vendors: false,
vendor: {
test: /node_modules/,
chunks: "all",
Expand Down

0 comments on commit 92cb254

Please sign in to comment.