Questions tagged [webpack-hmr]
343 questions
0
votes
0 answers
Webpack-dev-server hot reloading JS/HTML changes AngularJS
My project directory Structure is :
mcdist
- assets
index.html
- css
main.css
- js
app.js
lib.js
- ng-app
- images
src
- images
1.png
2.png
- javascripts
…

Enigma
- 749
- 1
- 13
- 35
0
votes
1 answer
Webpack - When are modules loaded?
I have a reservation.js script which contains a function to add a event listener to a form input.
paymentInstalments.addEventListener('click', ()=> (...))
This function is being executed on page load thorough jquery's $(document).ready()
However…

tmcrs123
- 55
- 1
- 8
0
votes
1 answer
how to make auto reload work when HMR enabled
I've been trying multiple times to configure webpack. Everytime I start the process, auto reload works fine all the way, until I enable --hot for web-dev-server, then any change to the html has no impact, no errors, nothing, just a log in terminal…

joeyj
- 535
- 1
- 6
- 22
0
votes
1 answer
Issues with VueJS, Electron, and Webpack (Hot Reload)
I've been working on a new project involving Electron, VueJS, and I'm using Webpack for HMR functionality... My issue is that the Hot Module Replacement stuff isn't working for some reason.
I've got the following…

MisutoWolf
- 1,133
- 1
- 18
- 33
0
votes
0 answers
How can I update ONLY ONE component? Table
I've got working application without any errors with this configs:
package.json:
...
"react-hot-loader": "^3.0.0-beta.7",
"webpack": "^3.6.0",
"webpack-dev-server": "^2.8.2"
"react-router-dom": "^4.2.2",
...
babel.rc:
{
…

ANTVirGEO
- 124
- 1
- 16
0
votes
1 answer
webpack-dev-server Inline mode on CLI hot module reload page will refresh for change dom
When I change dom, page will refresh, but change css, hmr works, page not refresh, will hot replacement.
I want the page will not refresh instead of hot replacement when i change dom
global webpack version 3.3.0, Mac OS 10.11.6
this is my…

Ming Ye
- 1
- 1
0
votes
0 answers
HMR is not reloading on changes outside /src
I have a shared folder where reusable React components are stored. I want to make Hot Reload working with that directory, but it doesn't work.
Here is the folder structure I have:
|__shared
|__src
|__package.json
Somehow Webpack…

alex.mironov
- 2,834
- 6
- 27
- 41
0
votes
1 answer
django webpack loader: React app hot reload failure
Some context: I am developing a Django application, and I would like to integrate a React component in a template. I am new to React, not so to Django.
So, I am trying to setup a React dev environment, with hot reloading of the React component…

matthieu.cham
- 501
- 5
- 17
0
votes
1 answer
webpack Hot Middleware updates across all tabs instances when using multiple tabs / browsers
I've bumped into an issue with webpack-hot-middleware, when i open multiple instances of browsers or tabs (chrome and FF) i get refreshes or updates on all of them on each visual action being triggered.
For example, scrolling on 1 tab triggers a…

Sagiv b.g
- 30,379
- 9
- 68
- 99
0
votes
1 answer
can't load images when using webpack-dev-server with HMR config
I created a React project with webpack2, and previewed the result by using webpack-dev-server. At first, I just used the CLI to enable HMR as follows:
webpack-dev-server --inline --hot
everything is ok.
Then, I wanted to enable HMR by setting up…

Clementine
- 43
- 6
0
votes
0 answers
HMR angular2 - is ngOnDestroy called on services?
I'm writing my own implementation of ngrx/store.
The last major hurdle is to make it work with hmr.
I would like to do some cleanup on my service, before it is replaced with new one, as the result of hmr reloading the app.
Service is annotated with…

charlie_pl
- 2,898
- 4
- 25
- 39
0
votes
1 answer
[webpack-dev-server]Why even I haven't used HotModuleReplacementPlugin or set "hot:true",HMR is happen?
I've been learning webpack-dev-server recently, the webpack documentation tells me that when I try to implement HMR(hot-moudle-replacement),I should use devServer.hot to "Enable webpack's Hot Module Replacement feature",just like…

pengHuWan
- 3
- 1
0
votes
0 answers
webpack hmr + socketio "user connected" spam when initialize
I'm trying socketio with webpack dev server using hmr. I'm not sure if it's related to my problem.
This is the most simple example I use:
Server side:
this.io.on('connection', function(socket){
console.log('a user connected');
});
Client side…

François Richard
- 6,817
- 10
- 43
- 78
0
votes
0 answers
how to remove webpack's hmr in production?
I have a vs2015 solution and I use webpack.
I did set up an environment variable, but when I publish, the app is still sending hmr request
I can see in chrome dev tools
GET http://localhost:52112/__webpack_hmr net::ERR_CONNECTION_REFUSED
My config…

freddoo
- 6,770
- 2
- 29
- 39
0
votes
0 answers
Can't get Webpack HMR working properly
I'm implementing a Hot Module Replacement with Webpack in my project, which uses Node(v4.4.4)/Hapi(v8.0.0) as a server. The way I thought I could get it working was by using a plugin in my server file, which is shown below:
`var compiler = new…

eduardo
- 119
- 1
- 3