V
V
vvrider2017-07-23 14:43:55
Angular
vvrider, 2017-07-23 14:43:55

How to change port in Webpack ( Angular 4 hot reload not working )?

Node 8 2 1
Npm 5 3 0
Angular 4 3 1
Hot Reload not working. If you manually reload the page, everything is OK
ng serve --host --port 4200 --disable-host-check
* - I use because VM and 127* , 0.0.0.0 do not work
**--disable-host-check - what would fix invalid host header error (sec.issue in webpack)
I suspect it doesn't work because Webpack doesn't monitor , only localhost
-------------webpack.config.js----- ------------------
module.exports = {
module: {
rules: [
{
test: /\.pug$/,
use: [
"pug-loader? self",
]
},
{
test: /\.css$/,
use: [
"style-loader",
"css-loader"
],
}
]
}
};

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question