mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
build(webpack): fix a bug when PORT env exist. (#701)
This commit is contained in:
parent
d6317ce5f4
commit
d84e7ef768
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin');
|
|||
*/
|
||||
const ENV = process.env.ENV = process.env.NODE_ENV = 'development';
|
||||
const HOST = process.env.HOST || 'localhost';
|
||||
const PORT = process.env.PORT || 3000;
|
||||
const PORT = Number(process.env.PORT) || 3000;
|
||||
const HMR = helpers.hasProcessFlag('hot');
|
||||
const METADATA = webpackMerge(commonConfig({env: ENV}).metadata, {
|
||||
host: HOST,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue