Closed FA5I closed 4 years ago
Set for HtmlWebpackPlugin
cache: false
Having this exact issue with Laravel Mix v.6 running npm run hot
.
Was having the same issue, what worked for me:
cache: false
Was having the same issue, what worked for me:
cache: false
https://webpack.js.org/configuration/cache/ This works for me, but before I didn't set cache. Hot update also worked. Now I don't understand what cache does. When I set the cache to false, I felt like my compilation slowed down a lot😕
Code
Expected Behavior
I am expecting the Webpack dev server to pick up changes to my source code. For example, if I change the title on my homepage, I would expect the code to recompile, then Webpack dev server to render the new, updated page.
Actual Behavior
Webpack dev server updates the page when I make the first update. For example, if I change the title from "Home" to "Homie" this renders.
Now if I subsequently change the title on the page from "Homie" to "Home", Webpack dev server says "nothing changed" in the browser console. This is not what should happen. As a result nothing gets updated, and I am stuck with manually closing down my Webpack dev server, and rerunning it.
Here is my browser console output:
I also uploaded a video showing the behaviour here: https://streamable.com/ebvinh
Any guidance appreciated!
For Bugs; How can we reproduce the behavior?
Type
npm run dev
using my Webpack dev config, and the error should play itself out.The below shows the my directory structure:
For Features; What is the motivation and/or use-case for the feature?