Skip to content

Commit

Permalink
Revert base-href to absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
clocken authored and PierreBesson committed Dec 20, 2020
1 parent d0fe0ed commit 3ac3b02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<meta name="theme-color" content="#000000">
<link rel="icon" href="favicon.ico" />
<link rel="stylesheet" href="content/css/loading.css">
<base href="./"/>
<base href="/"/>
<!-- jhipster-needle-add-resources-to-root - JHipster will add new resources here -->
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ module.exports = options => ({
template: './<%= CLIENT_MAIN_SRC_DIR %>index.html',
chunksSortMode: 'auto',
inject: 'body',
base: './',
base: '/',
}),
<%_ if (enableTranslation) { _%>
new MergeJsonWebpackPlugin({
Expand Down
8 changes: 4 additions & 4 deletions generators/client/templates/vue/webpack/webpack.common.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = {
options: {
limit: 10000,
name: 'content/[hash].[ext]',
publicPath: "./"
publicPath: "../"
}
},
{
Expand All @@ -61,7 +61,7 @@ module.exports = {
options: {
limit: 10000,
name: 'content/[hash].[ext]',
publicPath: "./"
publicPath: "../"
}
},
{
Expand All @@ -70,7 +70,7 @@ module.exports = {
options: {
limit: 10000,
name: 'content/[hash].[ext]',
publicPath: "./"
publicPath: "../"
}
}
]
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 3ac3b02

Please sign in to comment.