aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-10-12 23:57:16 +0100
committerGravatar GitHub <[email protected]>2020-10-12 23:57:16 +0100
commit7725eb10c0c052b9f1e31a880df269862d5aff44 (patch)
tree85f6f28aeaa0cd0456478a6d357d5ee0968d40d4 /webpack.config.js
parentMerge pull request #25 from python-discord/tests/increase-coverage (diff)
parentImprove loader style (diff)
Merge pull request #26 from python-discord/build/chunking
Improve chunking configuration
Diffstat (limited to 'webpack.config.js')
-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"
}),