webpack-up | CLI tool to setup webpack | Frontend Framework library
kandi X-RAY | webpack-up Summary
kandi X-RAY | webpack-up Summary
CLI tool to jumpstart projects using webpack + babel + react/preact.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of webpack-up
webpack-up Key Features
webpack-up Examples and Code Snippets
Community Discussions
Trending Discussions on webpack-up
QUESTION
I want to get HMR working.
I am using VS2017. I have created an aspnetcore 2.0 project, then added the aurelia framework using the Aurelia cli using 0.31.1 which now supports WebPack 3. I follow the instructions to make add SpaServices and modify start.cs.
I then run the project with dotnet run
, and open IE and browse to http://localhost:5000
see the expected "Hello World" from Aurelia.
Now I want to see HMR in action. So I edit app.ts to change Hello World
to Hello HMR
I then save the file. I expect to see the change updated in IE. But it never automatically reloads.
However, if I click the refresh button the browser, the change then shows up in IE.
Is there some other thing I am supposed to be doing here to get HMR working?
When I save the changes, I see the app.{guid}.bundle.js updated on disk (a new file is created with a new guid. So that much is working. But how to get the browser to react to that change and refresh?
...ANSWER
Answered 2017-Aug-23 at 19:38inspecting the cli code, to get it to work you should set "hmr": true
in aurelia.json
under platform
.
and call au run --hmr --watch
.
edit: it fails to update my html (although the console shows me that hmr
is active by listing all the changes I make)
edit2: I think this works when you actually use more than 1 module.
changes in the app.html
only were not reflected back to the browser.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install webpack-up
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page