aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-10-12 23:53:15 +0100
committerGravatar Joe Banks <[email protected]>2020-10-12 23:53:15 +0100
commit213d6e68340455c71f01da9f0d819adb41f92037 (patch)
tree563b78cf7d8fcc6f6ab8111145c59b93374a3afc
parentRe-enable webpack-dev-server (diff)
Configure chunking
-rw-r--r--webpack.config.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 49bcd76..babea35 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -13,6 +13,12 @@ module.exports = (env) => {
publicPath: "/",
devtoolModuleFilenameTemplate: "file:///" + path.resolve(__dirname, "[resource-path]?[loaders]")
},
+ optimization: {
+ splitChunks: {
+ chunks: 'all',
+ maxSize: 204800,
+ }
+ },
resolve: {
extensions: ['.js', '.jsx', '.ts', '.tsx']
},
@@ -80,7 +86,7 @@ module.exports = (env) => {
new webpack.EnvironmentPlugin({
NODE_ENV: "production",
REACT_APP_SHA: "development",
- REACT_APP_SENTRY_DSN: "development",
+ REACT_APP_SENTRY_DSN: "https://[email protected]/1234",
REACT_APP_BRANCH: "development",
REACT_APP_OAUTH2_CLIENT_ID: "0"
}),