Replies: 3 comments
-
Another reason why we add hashes is having unique filenames. And it's not "CDN" but "Caching": https://hacks.mozilla.org/2017/01/using-immutable-caching-to-speed-up-the-web/
? |
Beta Was this translation helpful? Give feedback.
-
The issue with "unique filenames" is your dist folder blows up unless you add another plugin/line to delete it always. And to answer your "?": The list is even longer. |
Beta Was this translation helpful? Give feedback.
-
Once in a while i come back to parcel to see if it added this simple feature. And after many years i still dont see improvement. |
Beta Was this translation helpful? Give feedback.
-
Everywhere where people ask or complain about the hashes in file names i read the excuse its because of CDN.
And if you want to turn it off because you simply dont need it (for example because you use express) you have to write some Namer plugin and blow up your configs.
Merge requests adding a option to turn this behaviour off get denied.
I dont understand this!
It really frustrates me because on one side parcel has the potential to simplify project setups but on the other side it add such complexity.
Does parcel expect the users to use CDN?
Edit:
An workaround is to not use script tags to include scripts, but use something like this and compile the js file seperately.
Because then parcel does not add hashes to js files...
index.html:
Beta Was this translation helpful? Give feedback.
All reactions