-
Hi, in my project i use Parcel API like this: const bundler = new Parcel({
mode: 'production',
entries: ['src/mobile.html', 'src/desktop.html'],
defaultConfig: '@parcel/config-default',
shouldContentHash: false,
defaultTargetOptions: {
publicUrl: 'some-string',
},
});
return bundler.run(); In dist folder i have files with some hash postfix like How to disable this hashing? Also i want to make my own postfix |
Beta Was this translation helpful? Give feedback.
Answered by
mischnic
Aug 1, 2022
Replies: 1 comment
-
It disables content hashing, not hashing:
You'd have to create a namer plugin to remove hashes |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
krutoo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It disables content hashing, not hashing:
shouldContentHash
means that you get hashes that only depend on the Parcel configuration and the asset file paths, but not the content. So the hashes will be constant if you change some codeYou'd have to create a namer plugin to remove hashes