-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix building for prod to exclude the WEBSOCKET_URL var stored in …
…the .env file
- Loading branch information
1 parent
4be7567
commit 959eaa3
Showing
3 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
const { merge } = require('webpack-merge'); | ||
const common = require('./webpack.common.js'); | ||
const path = require('path'); | ||
const webpack = require('webpack'); | ||
|
||
module.exports = merge(common, { | ||
mode: 'development', | ||
devtool: 'source-map', | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
WEBSOCKET_URL: JSON.stringify((process.env.WEBSOCKET_URL !== undefined) ? process.env.WEBSOCKET_URL : '') | ||
}), | ||
] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
const { merge } = require('webpack-merge'); | ||
const common = require('./webpack.common.js'); | ||
const webpack = require('webpack'); | ||
|
||
module.exports = merge(common, { | ||
mode: 'production', | ||
optimization: { | ||
usedExports: true, | ||
minimize: true | ||
}, | ||
stats: 'errors-only', | ||
performance: { | ||
hints: false | ||
} | ||
mode: 'production', | ||
optimization: { | ||
usedExports: true, | ||
minimize: true | ||
}, | ||
stats: 'errors-only', | ||
performance: { | ||
hints: false | ||
}, | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
WEBSOCKET_URL: undefined | ||
}), | ||
] | ||
}); |