-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webpack-dev-server not recompiling on scss changes #2062
Comments
I think |
@jakeNiemiec I am using |
The chain basicly works like this:
MiniCssExtractPlugin does not support Good news time: a PR was just merged for this feature webpack-contrib/mini-css-extract-plugin#334, but it won't come to webpacker unless somebody creates a PR here. |
same issues in here #2059 |
Now that MiniCssExtractPlugin supports HMR and has been released (version 0.6.0), @jakeNiemiec what is missing to get it working? |
@zedtux Are you from the future 😄. To answer your question, webpacker needs a PR that revisits the files changed here: https://github.com/rails/webpacker/pull/641/files I don't know what direction @gauravtiwari will want to take this, but the extract css step takes 27 seconds on our modest codebase. Do you think this should be the default when running |
Please don't tell people about me ... 🤣 |
It's now working on Webpacker 👍 |
If webpacker stops responding to changes in application.scss or application.js, run this command in terminal: |
I am using webpacker for managing
javascript
,scss
andassets
in my rails project. I have used following command to runwebpack-dev-server
.bin/webpack-dev-server
when ever I am changing
javascript
file content its recompiling and on page refresh getting updated content. But when I try the same withscss
file changes its not updating.Webpacker dev server is not re-compiling
scss
files on change.Following is my
webpacker.yml
dev_server
configuration:Following is the dependency
Update: 1 (
hmr: true
)I tried to change the
dev_server
setting forhmr: false
tohmr: true
and at this time CSS files didn't even loaded. There was no request going in the network for fetching CSS files!!!I expect on changing the
scss
file contentwebpack-dev-server
will recompile automatically as it does forjs
file change, and when I refresh changes will be reflected in the page, without doing manual compilation.The text was updated successfully, but these errors were encountered: