sindresorhus/refined-github
The issue has been solved
Webpack: generate a file containing the list of features #2098
bfred-it posted onGitHub
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)}