parcel-plugin-web-extension
v1.6.1
Published
Parcel plugin for WebExtension projects
Downloads
2,031
Maintainers
Readme
parcel-plugin-web-extension
This parcel plugin enables you to use a WebExtension manifest.json as an entry point. For more information about manifest.json, please refer to the MDN docs.
Installation
Install via npm:
npm install --save-dev parcel-plugin-web-extensionor via yarn:
yarn add -D parcel-plugin-web-extensionUsage
Quick Start
After installing this plugin, use manifest.json as your entry point, like so:
parcel src/manifest.jsonYour assets will now be resolved from the contents of your manifest file.
Assets resolved by this plugin:
background.scriptsbackground.pagecontent_scriptsbrowser_action.default_popupbrowser_action.default_iconpage_action.default_popuppage_action.default_iconiconsweb_accessible_resourceschrome_url_overrides.bookmarkschrome_url_overrides.newtabchrome_url_overrides.history
Environments
This plugin will try to resolve and merge environment-specific manifest files in the format manifest.${NODE_ENV}.json. For example, in development, you can run:
NODE_ENV=development parcel src/manifest.jsonand the plugin will also look for manifest.development.json and merge those keys into the base manifest.
Licence
Apache 2.0
