diff --git a/webpack.config.js b/webpack.config.js index 668f7a9..95d72d0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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'