diff options
author | 2020-10-12 23:57:16 +0100 | |
---|---|---|
committer | 2020-10-12 23:57:16 +0100 | |
commit | 7725eb10c0c052b9f1e31a880df269862d5aff44 (patch) | |
tree | 85f6f28aeaa0cd0456478a6d357d5ee0968d40d4 /webpack.config.js | |
parent | Merge pull request #25 from python-discord/tests/increase-coverage (diff) | |
parent | Improve 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.js | 8 |
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" }), |