extension.config.js
Warning: This feature is a work in progress and may be incomplete or subject to change. If you see an error or something that could be improved, please make a pull-request. The link that documents this feature can be found at the bottom of the page.
The extension.config.js
file enables developers to adjust the behavior of Extension.js.
This configuration file provides flexibility by enabling browser-specific configurations,
command customization, and support for the massive ecosystem of webpack loaders and plugins.
Adding a extension.config.js
file at the same level as your manifest.json
file will
extend the capabilities of Extension.js. The config file includes the following keys:
Key | Description |
---|---|
config |
Modifies the webpack configuration for added flexibility. |
The config
key allows you to modify the default webpack configuration. This gives you
the power to add additional loaders or plugins:
extension.config.js
Below are sample configurations for the different sections in extension.config.js
using webpack.
The extension.config.js
types are defined here.
extension.config.js
file: Leverage the extension.config.js
file to
customize your extension's behavior.browser
key.commands
key to adjust the behavior of commands
like dev
, preview
, and build
.