Questions tagged [webpack-hmr]

343 questions
2
votes
1 answer

How to use Webpack Hot Middleware / Webpack Hot Reload with IIS Rewrite / relative base Url?

We are developing an application that uses hapi as webserver and webpack-hot-middleware for hot-module-replacement. The application server runs at http://hostname:8080. The application is usually accessible via http://hostname/my/module/ To make…
sceee
  • 1,681
  • 19
  • 34
2
votes
0 answers

Webpack devserver always refreshes using Hot Module replacement with multiple configurations

My project has two different webpack configurations - one with the output intro.js and one with the output app.js. I'm trying to get Hot Module Replacement (HMR) to work, but I encounter the following issue: When changing code that's relevant to…
OpherV
  • 6,787
  • 6
  • 36
  • 55
2
votes
0 answers

Working nativescript-vue with typescript and hot module reload

After creating a project using the "view init nativescript-view/view-cli-template app" command with the TypeScript option, the Hot Module Reload does not work at all. I am using version 6.0 of nativescript. How to configure the project to run the…
2
votes
0 answers

Webpack Hot Reload very slow

I'm quite new to Webpack and when I initially set it up with my project it was working great but it seems to have got much slower as my project has progressed (maybe because more and more packages get included?). It's now taking over 1 second…
Andy Furniss
  • 3,814
  • 6
  • 31
  • 56
2
votes
0 answers

Laravel Mix hot reloading inside the package

I've been trying to create an admin panel for Laravel (I know, there is a Laravel Nova now for 99$ for a single site) and all I've been doing is trying to build all of this functionality on top of laravel/laravel package. What I've seen with Nova,…
Ivan Zhivolupov
  • 1,107
  • 2
  • 20
  • 39
2
votes
1 answer

HMR with webpack-dev-server doesn't reload (webpack 4)

I'm developing my new JS starter for static sites and I want to have a create-react-app-like architecture. All my webpack configuration is based on the create-react-app webpack config but using Webpack 4. When I'm launching the start.js script, a…
2
votes
1 answer

Webpack hot module replacement stuck at [HMR] Waiting for update signal from WDS

I'm using webpack hot module replacement in my react project. configuration looks like below. let compilerConfig = { entry: [ 'babel-polyfill', 'webpack-dev-server/client?http://0.0.0.0:9000/', …
Roshan shetty
  • 66
  • 1
  • 7
2
votes
1 answer

HMR with Webpack/Laravel Mix/AdonisJS

I am having a lot of difficulty getting Webpack's Hot Module Replacement (HMR) working for my application stack, which is: Adonisjs v4.0.28 Laravel Mix v2.1.11 Webpack v3.11.0 Vue v2.5.16 The frontend application assets are all loaded from the…
jarodh
  • 481
  • 3
  • 6
2
votes
0 answers

Webpack Hot Reload Infinite Refresh in Chrome

I'm having a strange hot reloading issue that I think is related to my environment, but I can't track down what is. I was hoping someone else had run into it and could point me in the right direction. I've been banging my head on this one for a…
2
votes
1 answer

webpack-dev-server and webpack -> output file to parent directory and have webpack-dev-server hot reloading still working

We have the following structure in our web application: /src(.sln) --/ClientSite --/AdminSite --/SharedWeb In SharedWeb we have the following folders: --/Client --/Admin --/Shared We have this structure in order to have hot reloading with…
Ogglas
  • 62,132
  • 37
  • 328
  • 418
2
votes
0 answers

React Native + Redux + HMR + connect

I'm trying to get stuff working but I can't success. Initially I get the following error : does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which…
2
votes
0 answers

How to proxy webpack dev server to vagrant vvv(wordpress) site

I'm trying to set up a basic dev environment for my WordPress work flow. I want to basically use the HMR capabilities of Webpack for reloading parts of the site without reloading. Currently, It's using Syncloader to watch php, css changes and…
Trip1
  • 967
  • 1
  • 8
  • 11
2
votes
0 answers

How to access/inject global variables in wds express middleware

I wanted to intercept the connection from wds to client on every change so that before it refreshes/hot reloads I want to fetch a token which can be injected to the angular app. I've added a preprocesor middleware to the webpack dev server using the…
2
votes
1 answer

Setting up webpack hot load / HMR for static pages

I know the title doesn't make too much sense. But please bear with me. I am setting up React for a legacy Rails app which is using the good old static ERBs. Due to the scale, I have to move towards SPA slowly, meaning swapping out components on the…
Edmund Lee
  • 2,514
  • 20
  • 29
2
votes
1 answer

Can't get React Hot Loader to work

I am trying to config react-hot-loader into my app. It's built on webpack 2, webpack-dev-middleware, browser-sync, express and doing server side rendering. Here's my webpack.config require('dotenv').config() import path from 'path' import webpack…