Skip to content

Commit

Permalink
ClientUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
brase committed Apr 14, 2020
1 parent f4c6df9 commit 4527116
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ console.log('Bundling for ' + (isProduction ? 'production' : 'development') + '.
// The HtmlWebpackPlugin allows us to use a template for the index.html page
// and automatically injects <script> or <link> tags for generated bundles.
var commonPlugins = [
new webpack.DefinePlugin({
__BASE_URL__: isProduction ? JSON.stringify('') : JSON.stringify( 'http://localhost:80' ) //For production we build urls without base
}),
new HtmlWebpackPlugin({
filename: 'index.html',
template: resolve(CONFIG.indexHtmlTemplate)
Expand Down Expand Up @@ -90,7 +93,7 @@ module.exports = {
// Besides the HtmlPlugin, we use the following plugins:
// PRODUCTION
// - MiniCssExtractPlugin: Extracts CSS from bundle to a different file
// To minify CSS, see https://github.com/webpack-contrib/mini-css-extract-plugin#minimizing-for-production
// To minify CSS, see https://github.com/webpack-contrib/mini-css-extract-plugin#minimizing-for-production
// - CopyWebpackPlugin: Copies static assets to output directory
// DEVELOPMENT
// - HotModuleReplacementPlugin: Enables hot reloading when code changes without refreshing
Expand Down

0 comments on commit 4527116

Please sign in to comment.