webextension-scripts
This package includes scripts and configuration used by WebExtension Create.
Usage
webextension-scripts <script> [option]
Options
-
-v
--version
output the version number -
-h
--help
output usage information
Commands
-
build
build folders ready for distribution -
init [template]
initialize webextension-scripts in the current directory -
start
start developing with auto reload
Available Scripts
Usage:
npx webextension-create [options]
Options:
-
-v
--version
output the version number -
-d
--dev
use link instead of install for webextension-scripts -
-h
--help
output usage information
npm run start
Compiles the extension into ./build/unpacked
to be loaded into your broswer for development. The extension automatically reloads when you save changes to the code.
Load into Chrome
- Open Chrome
- Go to
chrome://extensions
- Turn on
Developer mode
- Click
Load unpacked
- Select folder
./build/unpacked
Load into Firefox
- Open Firefox
- Go to
about:debugging
- Click
Load Temporary Add-on...
- Open
./build/unpacked/manifest.json
npm run build
Compiles the extension into ./build/unpacked
and then packages that into production ready zips at ./build/{target}-{version}.zip
.