From 3ac3b020660d394f50f9cc41280c35496f030f6b Mon Sep 17 00:00:00 2001 From: clocken <66382986+clocken@users.noreply.github.com> Date: Fri, 18 Dec 2020 13:32:37 +0100 Subject: [PATCH] Revert base-href to absolute path --- .../templates/angular/src/main/webapp/index.html.ejs | 2 +- .../client/templates/react/webpack/webpack.common.js.ejs | 2 +- .../client/templates/vue/webpack/webpack.common.js.ejs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/generators/client/templates/angular/src/main/webapp/index.html.ejs b/generators/client/templates/angular/src/main/webapp/index.html.ejs index 0e1c7d0d4e8..e313239122b 100644 --- a/generators/client/templates/angular/src/main/webapp/index.html.ejs +++ b/generators/client/templates/angular/src/main/webapp/index.html.ejs @@ -28,7 +28,7 @@ - + diff --git a/generators/client/templates/react/webpack/webpack.common.js.ejs b/generators/client/templates/react/webpack/webpack.common.js.ejs index bbc0b566d38..5e81a338b5c 100644 --- a/generators/client/templates/react/webpack/webpack.common.js.ejs +++ b/generators/client/templates/react/webpack/webpack.common.js.ejs @@ -153,7 +153,7 @@ module.exports = options => ({ template: './<%= CLIENT_MAIN_SRC_DIR %>index.html', chunksSortMode: 'auto', inject: 'body', - base: './', + base: '/', }), <%_ if (enableTranslation) { _%> new MergeJsonWebpackPlugin({ diff --git a/generators/client/templates/vue/webpack/webpack.common.js.ejs b/generators/client/templates/vue/webpack/webpack.common.js.ejs index ba569661995..66da32e1f55 100644 --- a/generators/client/templates/vue/webpack/webpack.common.js.ejs +++ b/generators/client/templates/vue/webpack/webpack.common.js.ejs @@ -52,7 +52,7 @@ module.exports = { options: { limit: 10000, name: 'content/[hash].[ext]', - publicPath: "./" + publicPath: "../" } }, { @@ -61,7 +61,7 @@ module.exports = { options: { limit: 10000, name: 'content/[hash].[ext]', - publicPath: "./" + publicPath: "../" } }, { @@ -70,7 +70,7 @@ module.exports = { options: { limit: 10000, name: 'content/[hash].[ext]', - publicPath: "./" + publicPath: "../" } } ] @@ -106,7 +106,7 @@ module.exports = { }), // https://github.com/ampedandwired/html-webpack-plugin new HtmlWebpackPlugin({ - base: './', + base: '/', template: './<%= MAIN_SRC_DIR %>index.html', chunks: ['vendors', 'main', 'global'], chunksSortMode: 'manual',