aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/config
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-07-10 14:41:16 +0200
committerSonarTech <sonartech@sonarsource.com>2018-07-10 20:21:20 +0200
commitf09ee6b610528aa37b7b51be395c93524cebae8f (patch)
treec1ec210eb18ce9ae6a86b5c68f10ceef9dfcab50 /server/sonar-web/config
parent4e9feaddc45af56194e90e941d591bc465add571 (diff)
downloadsonarqube-f09ee6b610528aa37b7b51be395c93524cebae8f.tar.gz
sonarqube-f09ee6b610528aa37b7b51be395c93524cebae8f.zip
load web app asynchronously (#493)
Diffstat (limited to 'server/sonar-web/config')
-rw-r--r--server/sonar-web/config/webpack.config.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/server/sonar-web/config/webpack.config.js b/server/sonar-web/config/webpack.config.js
index 9030b4b41eb..c240dbd623c 100644
--- a/server/sonar-web/config/webpack.config.js
+++ b/server/sonar-web/config/webpack.config.js
@@ -45,7 +45,7 @@ module.exports = ({ production = true }) => ({
require.resolve('./polyfills'),
!production && require.resolve('react-error-overlay'),
'./src/main/js/app/utils/setPublicPath.js',
- './src/main/js/app/index.js'
+ './src/main/js/app/index.ts'
].filter(Boolean),
output: {
path: paths.appBuild,
@@ -150,11 +150,5 @@ module.exports = ({ production = true }) => ({
optimization: {
splitChunks: { chunks: 'all' }
},
- performance: production
- ? {
- hints: 'error',
- maxEntrypointSize: 600000, // recommended: 250kb
- maxAssetSize: 320000 // recommended: 250kb
- }
- : undefined
+ performance: production ? { hints: 'error' } : undefined
});