diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-12-18 15:51:21 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2018-12-20 11:41:49 +0100 |
commit | 9c3818394a97ff1b9d8e92f781bcd4a911ee9838 (patch) | |
tree | f41cc866a2fafd5b0dfba65cc668c723c64b41c9 /server/sonar-web/public/index.html | |
parent | 687c3b52b21afb9f7e8e80b4329921b1bfef1257 (diff) | |
download | sonarqube-9c3818394a97ff1b9d8e92f781bcd4a911ee9838.tar.gz sonarqube-9c3818394a97ff1b9d8e92f781bcd4a911ee9838.zip |
create a separate js bundle for legacy browsers (#1073)
Diffstat (limited to 'server/sonar-web/public/index.html')
-rw-r--r-- | server/sonar-web/public/index.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/public/index.html b/server/sonar-web/public/index.html index b46ea7ab73d..11e69bd1c71 100644 --- a/server/sonar-web/public/index.html +++ b/server/sonar-web/public/index.html @@ -44,7 +44,8 @@ window.official = %OFFICIAL%; </script> <% for (let chunk in htmlWebpackPlugin.files.chunks) { %> - <script src="%WEB_CONTEXT%/<%= htmlWebpackPlugin.files.chunks[chunk].entry %>"></script> + <script type="module" src="%WEB_CONTEXT%/<%= htmlWebpackPlugin.files.chunks[chunk].entry %>"></script> + <script nomodule src="%WEB_CONTEXT%/<%= htmlWebpackPlugin.files.chunks[chunk].entry.replace(/m\.[\w\d]+/, htmlWebpackPlugin.options.timestamp) %>"></script> <% } %> </body> |