Skip to content
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

Add bucket name as prefix of the bundle filename #21

Open
nhoizey opened this issue Mar 26, 2024 · 1 comment
Open

Add bucket name as prefix of the bundle filename #21

nhoizey opened this issue Mar 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nhoizey
Copy link

nhoizey commented Mar 26, 2024

A project in which I use this plugin currently generates two JavaScript bundles, for two buckets:

  • C5F5JJJEjF.js
  • NfTCyKwx5R.js

I would like to include only one of them in my Service Worker precaching, but the filename doesn't really help configuring the Service Worker build with a glob (I'm using Workbox).

It would be great if the bundle filename could include the bucket name as bucket-name_hash.js, which in my current use case would be:

  • decap-cms_C5F5JJJEjF.js
  • not-critical_NfTCyKwx5R.js
@zachleat zachleat added the enhancement New feature or request label Apr 30, 2024
@cssandstuff
Copy link

I'd also like something similar to this feature. The ability to just name your bundles so that they can be a consistent url.
For example I might want to split my css for convenience-sake (locality of behaviour) but eagerly load a css bundle on the root or other template, but I can't do that if the bundle name always changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants