aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/config/webpack
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2017-03-29 09:41:51 +0200
committerStas Vilchik <stas-vilchik@users.noreply.github.com>2017-03-29 16:01:38 +0200
commit90206399e25369da8d7783a553c8ed688680997e (patch)
tree577e4373f4551bbe9608cade37a945ac09a95ac4 /server/sonar-web/config/webpack
parent0b79a91a3f9ba4f5da9068a96a712db44c4524af (diff)
downloadsonarqube-90206399e25369da8d7783a553c8ed688680997e.tar.gz
sonarqube-90206399e25369da8d7783a553c8ed688680997e.zip
fix public paths for js chunks
Diffstat (limited to 'server/sonar-web/config/webpack')
-rw-r--r--server/sonar-web/config/webpack/webpack.config.base.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/sonar-web/config/webpack/webpack.config.base.js b/server/sonar-web/config/webpack/webpack.config.base.js
index fe00c755bed..0de9ca39631 100644
--- a/server/sonar-web/config/webpack/webpack.config.base.js
+++ b/server/sonar-web/config/webpack/webpack.config.base.js
@@ -30,11 +30,14 @@ module.exports = {
'./src/main/js/libs/third-party/bootstrap/dropdown.js'
],
- app: ['./src/main/js/app/index.js', './src/main/js/components/SourceViewer/SourceViewer.js']
+ app: [
+ './src/main/js/app/utils/setPublicPath.js',
+ './src/main/js/app/index.js',
+ './src/main/js/components/SourceViewer/SourceViewer.js'
+ ]
},
output: {
path: paths.appBuild,
- publicPath: '/',
filename: 'js/[name].[chunkhash:8].js',
chunkFilename: 'js/[name].[chunkhash:8].chunk.js'
},