-
Notifications
You must be signed in to change notification settings - Fork 343
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
Apply package.json config to set option defaults #1166
Comments
Hello, would this be a good first contribution? |
Hi @grount , thanks for your interest but @chujungeng is already working on it in #1266 |
This was documented some time ago here: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Getting_started_with_web-ext#Setting_option_defaults_in_a_configuration_file |
Is this a feature request or a bug?
feature
What is the current behavior?
You can define a custom config file named
web-ext-config.js
(as of #730) in your project directory to set option defaults.What is the expected or desired behavior?
It would be nice to specify a custom key in
package.json
likewebExt
that has configuration. This would cut down on the amount of config files littered in one's project directory.For example, we want to support a case where a developer puts something like this in their
package.json
:This
package.json
file contains a custom key namedwebExt
which has configuration data. We want to load that data as if it were in a config file. Read this to learn how to do it: https://stackoverflow.com/questions/10065564/add-custom-metadata-or-config-to-package-json-is-it-validConfig tracker: #176
The text was updated successfully, but these errors were encountered: