Skip to content

Webpack: generate a file containing the list of features #2098

Closed

Description

@fregante

Issuehunt badges

Recently we added a UI that lets you select which features to disable, but it requires the whole extension's code to run as a background page to collect the 100+ features' metadata.

As a background page, we only need the feature names, so it would be perfect if webpack just included or generated a file containing the list of features.

I already wrote some code to generate the list, but I need your help to generate a file with it, like:

// distribution/features-list.js
window.featuresList = ${JSON.stringify(features)}

IssueHunt Summary

bfred-it bfred-it has been rewarded.

Sponsors (Total: $40.00)

Tips

Activity

  1. added
    meta
    Please! ♥︎
    on May 30, 2019
  2. added
    💵 Funded on Issuehunt
    on May 30, 2019
  3. IssueHuntBot commented on May 30, 2019

    @IssueHuntBot

    @IssueHunt has funded $40.00 to this issue.


  4. added and removed
    Please! ♥︎
    on May 30, 2019
  5. added and removed
    💵 Funded on Issuehunt
    on Jun 5, 2019
  6. IssueHuntBot commented on Jun 5, 2019

    @IssueHuntBot

    @sindresorhus has rewarded $36.00 to @bfred-it. See it on IssueHunt

    • 💰 Total deposit: $40.00
    • 🎉 Repository reward(0%): $0.00
    • 🔧 Service fee(10%): $4.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    meta

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions