New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove hash from JS file using CLI #2743
Comments
There is an option
Does that work? |
@mischnic as you can see I've specified it in my scripts |
Oh, parcel/packages/core/parcel-bundler/src/Bundle.js Lines 123 to 124 in 95dfb33
|
You could still use |
Doesn't work.
Any links? |
I think this one is for chrome extensions? https://yarnpkg.com/en/package/parcel-plugin-web-extension |
Maybe this one works better in this case: https://github.com/mugi-uno/parcel-plugin-bundle-manifest |
@mischnic so I tried your recommendation but it gives error
Because I specified Complete repo is here 👉https://github.com/deadcoder0904/multiple-new-tab Trying other recommendation now |
@DeMoorJasper that doesn't work properly at all. It doesn't even copy my |
Okay so I found the solution & it was indeed my mistake 🤦♂️ What I did was specified So I accidentally removed my The final script was I didn't even need Thanks, everyone for helping out 🙌 |
When I run I don't get the hash in the file name, but it also omits minification. Is that how it should work? I thought there was an option to disable minification that was separate. |
🐛 bug report
I want to remove hash of a JS file using CLI, not API
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
I want a plain
background.js
withouthash
while still using CLI😯 Current Behavior
Generates JS file with a hash like
background.7as78c.js
💁 Possible Solution
A method like
--no-content-hash
on CLI just like API hascontentHash: false
as mentioned here🔦 Context
I am trying to make a simple Chrome extension using Parcel. It has a
background.js
script referenced throughmanifest.json
.So, even if my
index.html
points to correctbackground.js
file which is hash-based, mymanifest.json
only points to thebackground.js
which I've mentioned.💻 Code Sample
background.js
manifest.chrome.json / manifest.firefox.json
package.json
🌍 Your Environment
The text was updated successfully, but these errors were encountered: