You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that if you comment the line 47 and 48 of the file-system-loader works.
What is the objetive of create a token based on the filename? If is for caching I think is better create a checksum based on the content file.
Thanks for reporting this @tinchoz49 . It looks like a solution shouldn't be too tricky but there are a few different factors at play so we'll need to make sure other functionality isn't affected. Would you be interested in helping to put together a failing test case for this bug?
Status on this: I'm looking into a better way of walking the dependency tree, which I'm hoping will be the key to getting watchify working properly. But my time is limited so if anyone else cares to help that would be greatly appreciated :)
@joshwnj Hi, can you say, when release with this fix will be ready? We want start project with css-modules, but watchify problem block it, if you have troubles with time, we can fork module and fix it problem, or we can wait when you fix it?
But even at this point it partly works :) And hopefully it gives you an idea of where it's heading, so please take a look and feel free to fix any bugs you see. I'm out of time today but hopefully will have time to wrap it up tomorrow.
Hrm, I spoke too soon. It will handle a change which it hasn't seen before, but making a change then reverting it will not result in an update.
For example, running with a padding: 10px, then changing to padding: 60px will correctly rebuild the css, but changing back to padding: 10px will not. Updating to a new value, such as padding: 600px, will trigger an update.
Activity
tinchoz49 commentedon Nov 21, 2015
I found that if you comment the line 47 and 48 of the file-system-loader works.
What is the objetive of create a token based on the filename? If is for caching I think is better create a checksum based on the content file.
joshwnj commentedon Nov 23, 2015
Thanks for reporting this @tinchoz49 . It looks like a solution shouldn't be too tricky but there are a few different factors at play so we'll need to make sure other functionality isn't affected. Would you be interested in helping to put together a failing test case for this bug?
justgook commentedon Nov 25, 2015
By commenting those lines it updates map, but not rebuild css-file
markuplab commentedon Nov 27, 2015
Do you need help with this problem? I can try make fixes.
justgook commentedon Nov 27, 2015
for me it is main stopper to use css-modules in my projects..
joshwnj commentedon Nov 28, 2015
Thanks for the offer @markuplab - that'd be great, especially if you're able to help with writing a test case for this issue.
joshwnj commentedon Nov 28, 2015
Status on this: I'm looking into a better way of walking the dependency tree, which I'm hoping will be the key to getting watchify working properly. But my time is limited so if anyone else cares to help that would be greatly appreciated :)
joshwnj commentedon Nov 29, 2015
From early trials the solution appears to be working 🙆♀️ Need to check a few more edges and then will put together a release.
markuplab commentedon Nov 29, 2015
Ohhh it's amazing :) Can you create PR?
markuplab commentedon Nov 30, 2015
@joshwnj Hi, can you say, when release with this fix will be ready? We want start project with css-modules, but watchify problem block it, if you have troubles with time, we can fork module and fix it problem, or we can wait when you fix it?
joshwnj commentedon Nov 30, 2015
@markuplab I've pushed #64, which still has a couple of bugs and failing tests (and I believe will need css-modules/css-modules-loader-core#62 to be merged in order to pass as well).
But even at this point it partly works :) And hopefully it gives you an idea of where it's heading, so please take a look and feel free to fix any bugs you see. I'm out of time today but hopefully will have time to wrap it up tomorrow.
snikch commentedon Nov 30, 2015
@joshwnj I've been watching this issue, and have tried out #64 and this seems to fix the issue for me.
snikch commentedon Nov 30, 2015
Hrm, I spoke too soon. It will handle a change which it hasn't seen before, but making a change then reverting it will not result in an update.
For example, running with a
padding: 10px
, then changing topadding: 60px
will correctly rebuild the css, but changing back topadding: 10px
will not. Updating to a new value, such aspadding: 600px
, will trigger an update.