sindresorhus/refined-github

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)}

Fund this Issue

$40.00
Rewarded

Rewarded pull request

Recent activities

bfred-it was rewarded by sindresorhus for sindresorhus/refined-github# 2098
almost 6 years ago
bfred-it submitted an output to  sindresorhus/ refined-github# 2098
almost 6 years ago