Skip to content

Invokes HMR reload whole application starting from entry #6

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

Closed
genaby opened this issue Sep 26, 2016 · 3 comments
Closed

Invokes HMR reload whole application starting from entry #6

genaby opened this issue Sep 26, 2016 · 3 comments

Comments

@genaby
Copy link

genaby commented Sep 26, 2016

HMR posts into browser patch with every single module, as result application is reloaded by any change in CSS.

@olegstepura
Copy link
Owner

Hi! I need more details. HMR is expected to send patches when module is changed, it's a desired behaviour.

@genaby
Copy link
Author

genaby commented Sep 29, 2016

HMR works fine if it is removed from pre-loaders, and patches only updated files and its dependencies.
Details:
styles!css?modules&localIdentName=[name]_[local]_[hash:base64:5]!postcss!resolve-url!sass?sourceMap
with numerous SASS imports
e.g.:

@import "../../../../scss/classes/tables";
@import "../../../../scss/consts/bg-images";

$proportion: 37%;

th {
  &.status { width: 12%; }
  &.reporting { width: 8%; }
  &.modified { width: 8%; }
...

and there are few TS files which import multiply style modules.

So webpack has a crazy graph of dependencies.

I'll try to reproduce this issue again later... please let me know what details do you need.

@olegstepura
Copy link
Owner

Hi! Seems like a known issue. I also experienced the issue that newly created files were not processed.
Please take a look here Quramy/typed-css-modules#2
Currently we have no solution to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants