2019-02-01 16:57:45 +00:00
|
|
|
# web-ext
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
> A command-line tool for managing web extension development.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://www.npmjs.com/package/web-ext>.
|
2019-02-01 16:57:45 +00:00
|
|
|
|
|
|
|
- Run the web extension in the current directory in Firefox:
|
|
|
|
|
|
|
|
`web-ext run`
|
|
|
|
|
|
|
|
- Run a web extension from a specific directory in Firefox:
|
|
|
|
|
|
|
|
`web-ext run --source-dir {{path/to/directory}}`
|
|
|
|
|
|
|
|
- Display verbose execution output:
|
|
|
|
|
|
|
|
`web-ext run --verbose`
|
|
|
|
|
|
|
|
- Run a web extension in Firefox Android:
|
|
|
|
|
|
|
|
`web-ext run --target firefox-android`
|
|
|
|
|
|
|
|
- Lint the manifest and source files for errors:
|
|
|
|
|
|
|
|
`web-ext lint`
|
|
|
|
|
|
|
|
- Build and package the extension:
|
|
|
|
|
|
|
|
`web-ext build`
|
|
|
|
|
|
|
|
- Display verbose build output:
|
|
|
|
|
|
|
|
`web-ext build --verbose`
|
|
|
|
|
|
|
|
- Sign a package for self-hosting:
|
|
|
|
|
|
|
|
`web-ext sign --api-key {{api_key}} --api-secret {{api_secret}}`
|