Skip to content

Commit

Permalink
webpack to inject base tag in index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Pamplemousse committed Jan 5, 2025
1 parent b5c575b commit ce93c18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ var commonConfig = {
new HtmlWebpackPlugin({
template: path.join(__dirname, 'front', 'static', 'index.html'),
inject: 'body',
filename: 'index.html'
filename: 'index.html',
base: (TARGET_ENV === 'production') ? 'https://www.xaviermaso.com' : 'http://localhost:8080',
}),
new webpack.EnvironmentPlugin({
NODE_ENV: 'development'
Expand Down

0 comments on commit ce93c18

Please sign in to comment.