File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ const HtmlWebpackPlugin = require('html-webpack-plugin')
8
8
const FriendlyErrorsPlugin = require ( 'friendly-errors-webpack-plugin' )
9
9
const portfinder = require ( 'portfinder' )
10
10
11
+ const HOST = process . env . HOST
12
+ const PORT = process . env . PORT && Number ( process . env . PORT )
13
+
11
14
const devWebpackConfig = merge ( baseWebpackConfig , {
12
15
module : {
13
16
rules : utils . styleLoaders ( { sourceMap : config . dev . cssSourceMap , usePostCSS : true } )
@@ -21,8 +24,8 @@ const devWebpackConfig = merge(baseWebpackConfig, {
21
24
historyApiFallback : true ,
22
25
hot : true ,
23
26
compress : true ,
24
- host : process . env . HOST || config . dev . host ,
25
- port : process . env . PORT || config . dev . port ,
27
+ host : HOST || config . dev . host ,
28
+ port : PORT || config . dev . port ,
26
29
open : config . dev . autoOpenBrowser ,
27
30
overlay : config . dev . errorOverlay
28
31
? { warnings : false , errors : true }
You can’t perform that action at this time.
0 commit comments