Questions tagged [webpack-hmr]
343 questions
2
votes
0 answers
Webpack: supporting less and scss files
I'm trying to configure webpack to compile and distribute my app styles bundling them into one unique file.
My project structure (created with this)
My webpack config file:
const path = require('path');
const webpack = require('webpack');
const…

Androidian
- 1,035
- 1
- 16
- 40
2
votes
0 answers
Express route HMR with Webpack
I'm trying to get HMR to work on the server-side with an express app and I'm seeing some odd behavior. My simple test project;
index.ts
let httpListener: Server = null;
let AppServer = require('./AppServer').default;
const port =…

XeroxDucati
- 5,130
- 2
- 37
- 66
2
votes
0 answers
How to set up Webpack HMR services with a 3rd party web server
I am writing a React application, and using Webpack to break it up into chunks -- manifest, 3rd party, and multiple application chunks.
However, unlike a typical Webpack'ed application, I am not using Node to serve the chunks -- the web server is a…

object88
- 720
- 1
- 7
- 20
2
votes
1 answer
Webpack 1.x Hot Module Replacement Modules not updating
I'm trying to integrate Angular 2 with HMR in Visual Studio 2015. I have 2 projects with the same file contents and same directory structure and both uses HMR with Angular 2. But the HMR for each project looks for different to update the bundle.…

Janshair Khan
- 2,577
- 4
- 20
- 44
2
votes
1 answer
How to use Hot Module Replacement with Electron
I’d like to use HMR with my React Electron app. How would I do that? Do I need web pack? How do I integrate it with Electron?

Hum4n01d
- 1,312
- 3
- 15
- 30
2
votes
1 answer
HMR only updates sometimes
Does anyone actually have HMR up and running smoothly? Mine is hot swapping sometimes only. How is that possible? I will edit a line of text and it will swap. Then I will go edit the same text and it will not see it. I'm using webpack 1.14. I've…

Brian Stallter
- 159
- 1
- 1
- 16
2
votes
1 answer
Issue with WDS doing hot module replacement, then full page reload right after
I am currently trying to set up HOT MODULE REPLACEMENT with a my webpack project. At the moment when i make changes to a react component in the source code, I am seeing the module reload in the browser without a refresh, followed by a full refresh…

Andrew Heppner
- 41
- 1
- 6
2
votes
2 answers
How to use Laravel + elixir + webpack + vue + hot module reload?
I've tried everything I've found to setup laravel 5.3 with elixir + webpack + vue + hot module reload and I can't achieve it.
When I do gulp watch I can't run the webpack dev server with hot module reload. I've searched for a solution for a few…

kanashin
- 365
- 1
- 3
- 14
2
votes
0 answers
Webpack HMR breaks on parse error
I am having issues with my code not reloading with HMR. I am using the CLI webpack dev server. The changes are seen and webpack recompiles but the site does not reload.
Console log:
[Log] [WDS] Hot Module Replacement enabled.
[Log] [WDS] App…

cyberwombat
- 38,105
- 35
- 175
- 251
2
votes
1 answer
How to implement HMR (Hot Module Reload ) in my Angular 2 project (step-by-step)?
I am very new to Angular 2 and I want to implement HMR to my Angular 2 project ( because the big time waiting until the page reload is very confusing for me ) .

M Fuat
- 1,330
- 3
- 12
- 24
2
votes
0 answers
webpack-hot-middleware always reloads the page hot reloading not working
I looked on all manuals but still my app after code change refreshes all the page not hot reloads the specific change any idea why? webpack.config:
export default {
debug: true,
devtool: 'cheap-module-eval-source-map',
entry: [
…

Avi Zloof
- 2,923
- 4
- 22
- 28
2
votes
0 answers
Webpack-Dev-Server giving error 'You may need an appropriate loader to handle this file type' for .jsx file
I am using the grunt-webpack. Trying to start the webpack-dev-server gives this error
Module parse failed: /u/saxenat/react-blueprint/src/js/app.jsx Unexpected token (5:16)
You may need an appropriate loader to handle this file type.
Before you…

athena's daughter
- 43
- 1
- 6
2
votes
2 answers
Inotify don't work on Docker for mac
I want to create Docker container for react-hot-loader. But inotify probably doesn't work inside the container. Therefore HMR is broken.
I use Docer for mac Version 1.12.0-rc2-beta16 (build: 9493).
This is my docker-compose.yml.
version:…

c8112002
- 375
- 3
- 13
2
votes
3 answers
Why does App state resets when using Webpack HMR plugin with Redux- DevTools?
I'm using webpack Hot Module Replacement(HMR) Plugin with Redux Devtools Chrome extension. However whenever the HMR runs, the Redux local app state resets to all the initial values. My webconfig is the following:
import webpack from 'webpack'
import…

jasan
- 11,475
- 22
- 57
- 97
2
votes
1 answer
Webpack-dev-server emits all chunks after every change
I just implemented hot-reload'ing for our dev environment. My javascript is broken up into a lot of chunks. Every time I make a change to a file all of the chunks get re-submitted. I'm running webpack-dev-server.
Here is an example:
Hash:…

Jason Hirshman
- 46
- 6