11ty / 11ty/eleventy-plugin-bundle

Add bucket name as prefix of the bundle filename

Open
#21 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
83
Forks
8
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by locating where the plugin generates bundle filenames and how bucket names and hashes are available there. Done means generated filenames use the bucket-name_hash.js format without breaking the existing bundles.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.