diff options
| author | 2020-10-12 23:53:15 +0100 | |
|---|---|---|
| committer | 2020-10-12 23:53:15 +0100 | |
| commit | 213d6e68340455c71f01da9f0d819adb41f92037 (patch) | |
| tree | 563b78cf7d8fcc6f6ab8111145c59b93374a3afc | |
| parent | Re-enable webpack-dev-server (diff) | |
Configure chunking
| -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"        }), | 
