question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect hash for dynamic CSS files not using contenthash,

See original GitHub issue

Hi, when using prerender-loader in conjunction with mini-css-extract-plugin there is an error loading CSS imported by dynamic-chunks when the hashing strategy is different from contenthash for that css file.

In that case, prerender-loader outputs a link pointing to a CSS file with a different hash.

Note that this doesn’t apply to JS files nor to CSS files imported by the main (entrypoint) chunk.

A full reproduction is in https://github.com/isidrok/prerender-loader-reprod, look at the readme for more information.

The original discussion is in GoogleChromeLabs/critters#7

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
developitcommented, Oct 31, 2018

This should be fixed now as long as you upgrade to the latest (0.4.4) mini-css-extract-plugin!

0reactions
developitcommented, Feb 22, 2019

That makes sense. Perhaps it’d be worth having the plugin warn when [hash] is used.

Read more comments on GitHub >

github_iconTop Results From Across the Web

webpack not adding [contenthash] properly to my .js files
Try to use [hash] instead of [contentHash ] . This worked for me.
Read more >
Adding Hashes to Filenames - SurviveJS
A content hash is derived based on the chunk content. If you are using MiniCssExtractPlugin , you should use [contenthash] as well. This...
Read more >
Bust That Cache Through A Content Hash - Alain Schlesser
The problem with this approach is that depending on what servers the visitor's connection is passing through, the assets will not be cached...
Read more >
What they don't tell you about webpack dynamic imports
So, if you're starting to use dynamic chunks, open the "Sources" tab in DevTools to see if there are hashes in the dynamic...
Read more >
Production - Parcel
You can also disable content hashing using the --no-content-hash CLI flag. Note that the name will still include a hash, but it will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found