HMR not reloading SCSS
See original GitHub issueI have Laravel Mix setup on a project and it’s working as expected. When running in hmr mode I can see in the console that it’s recompiling each time I change a SCSS or JS file.
However, it’s only reloading the javascript changes. If it’s a SCSS file that’s changed although HMR is triggered on the page, it says no changes have been detected.
[WDS] App hot update...
app.js:4282 [HMR] Checking for updates on the server...
app.js:9069 [HMR] Nothing hot updated.
app.js:4264 [HMR] App is up to date.
If I reload the web page then I see my SCSS changes.
Is this broken, or expected behaviour? I’d love to see my SCSS changes as well.
Issue Analytics
- State:
- Created 7 years ago
- Comments:27 (8 by maintainers)
Top Results From Across the Web
webpack 5 does not HMR (hot reload) on style changes
Webpack stopped hot reloading on any style changes (CSS, scss). Even importing styles into .ts/.js files seems to not doing much (it reloads...
Read more >Webpack 5 HMR not working for CSS updates #3064 - GitHub
Make whatever changes to SCSS files. Nothing changes until refresh. ... Check browser console and network requests on each update. hmr-console
Read more >HMR: See Changes without Reloading - SymfonyCasts
Back in our editor, at the bottom, let's make a CSS change: I'm pretty sure a designer just told me that the hover...
Read more >MiniCssExtractPlugin - webpack
The mini-css-extract-plugin supports hot reloading of actual css files in development. Some options are provided to enable HMR of both standard stylesheets and ......
Read more >Webpack's Hot Module Replacement Feature Explained
HMR allows you to exchange, add, or remove JavaScript modules while the application is running, all without having to reload the browser.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It won’t work right now for regular Sass files. The HMR feature is specifically for Vue and .vue components.
What I was able to do to get hot reloading of app.scss to work (with VueJS) was to do this in my root
.vue
component:Notice
lang="scss"
and noscoped
.