File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 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')
88const FriendlyErrorsPlugin = require ( 'friendly-errors-webpack-plugin' )
99const portfinder = require ( 'portfinder' )
1010
11+ const HOST = process . env . HOST
12+ const PORT = process . env . PORT && Number ( process . env . PORT )
13+
1114const devWebpackConfig = merge ( baseWebpackConfig , {
1215 module : {
1316 rules : utils . styleLoaders ( { sourceMap : config . dev . cssSourceMap , usePostCSS : true } )
@@ -21,8 +24,8 @@ const devWebpackConfig = merge(baseWebpackConfig, {
2124 historyApiFallback : true ,
2225 hot : true ,
2326 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 ,
2629 open : config . dev . autoOpenBrowser ,
2730 overlay : config . dev . errorOverlay
2831 ? { warnings : false , errors : true }
You can’t perform that action at this time.
0 commit comments