Webpack doesn't cache a module if it requires a url with a querystring #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Consider that the following two modules pass through
file!extract!css
:font.css:
main.css
I can't explain the why, but the module
font.css
is never cached by webpack if the querystring?v=1.0.0
is appended to the path. So, when a change is made inmain.css
, both chunks (main.css
andfont.css
) is compiled and emitted (slowing the rebuild).If we remove the querystring part from font path, a change in
main.css
will emit only the second chunk (as expected).Trying to find a solution, I removed the querystring from dependency's absolute path:
It seems it's working, but I'm very newbie with webpack internals and don't know if this is an acceptable solution.