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

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

Closed
fregante opened this issue May 30, 2019 · 3 comments · Fixed by #2099
Closed

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

fregante opened this issue May 30, 2019 · 3 comments · Fixed by #2099
Labels
🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt meta Related to Refined GitHub itself

Comments

@fregante
Copy link
Member

fregante commented May 30, 2019

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

@fregante fregante added help wanted meta Related to Refined GitHub itself Please! ♥︎ Particularly useful features that everyone would love! labels May 30, 2019
@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label May 30, 2019
@IssueHuntBot
Copy link

@IssueHunt has funded $40.00 to this issue.


@fregante
Copy link
Member Author

Sindre suggested https://github.com/sindresorhus/add-asset-webpack-plugin, I think I got it

@fregante fregante added has PR and removed Please! ♥︎ Particularly useful features that everyone would love! help wanted labels May 30, 2019
@issuehunt-oss issuehunt-oss bot added 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt and removed 💵 Funded on Issuehunt This issue has been funded on Issuehunt labels Jun 5, 2019
@IssueHuntBot
Copy link

@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
Labels
🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt meta Related to Refined GitHub itself
Development

Successfully merging a pull request may close this issue.

2 participants