Gathering detailed insights and metrics for webpack-webextension-plugin
Gathering detailed insights and metrics for webpack-webextension-plugin
Gathering detailed insights and metrics for webpack-webextension-plugin
Gathering detailed insights and metrics for webpack-webextension-plugin
@webextension-toolbox/webpack-webextension-plugin
Webpack plugin that compiles web-extension manifest.json files and adds smart auto reload
webpack-target-webextension
WebExtension plugin for Webpack. Supports code-splitting and dynamic import.
webpack-webextension-runtime-plugin
webpack plugin that hooks jsonpScriptSrc for webextensions
wext-manifest-webpack-plugin
Webpack plugin to solve the problem of generating js file for manifest.json entry
Webpack plugin that compiles WebExtension manifest.json files and adds smart auto reload
npm install webpack-webextension-plugin
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (93.37%)
JavaScript (6.63%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
82 Stars
262 Commits
22 Forks
2 Watchers
7 Branches
14 Contributors
Updated on Jul 11, 2025
Latest Version
1.0.0
Package Id
webpack-webextension-plugin@1.0.0
Unpacked Size
37.91 kB
Size
12.26 kB
File Count
19
NPM Version
8.3.1
Node Version
16.14.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
3
Webpack plugin that compiles web-extension manifest.json
files and adds smart auto reload.
manifest.json
fields1$ npm i webpack-webextension-plugin
1const WebextensionPlugin = require('webpack-webextension-plugin') 2 3const config = { 4 plugins: [ 5 new WebextensionPlugin({ 6 vendor: 'chrome' 7 }) 8 ] 9}
Add result to webpack plugins to initialize.
Type: Object
Any of the options below.
Type: String
Default: chrome
Any of: chrome
, opera
, firefox
, edge
, safari
Used for vendor prefixing in the manifest.json
. More infos regarding this can be found below.
Type: Integer
Default: 35729
Specify the listening port for the webstocket development server.
Type: Boolean
Default: true
Enables auto reload. If not specified will be enabled when using webpacks watch mode.
Type: Boolean
Default: false
Disable plugin logging.
Type: Integer
Default: 3000
Specify the reconnect time to the development server from the extension side.
Type: Object
Default: {}
Allows you to define defaults for the manifest.json
file.
We create/extend a background page in the extension with a websockets client, that connects to our custom websocket server. As soon as a specific files changes the client checks how to reload the extension:
manifest.json
change → full reloadmanifest.json
dependencies change → full reload_locales
change → full reloadVendor prefixed manifest keys allow you to write one manifest.json
for multible vendors.
1{ 2 "__chrome__name": "SuperChrome", 3 "__firefox__name": "SuperFox", 4 "__edge__name": "SuperEdge", 5 "__opera__name": "SuperOpera", 6 "__safari__name": "SuperSafari" 7}
if the vendor is chrome
this compiles to:
1{ 2 "name": "SuperChrome", 3}
Add keys to multiple vendors by seperating them with | in the prefix
{
__chrome|opera__name: "SuperBlink"
}
if the vendor is chrome
or opera
, this compiles to:
{
"name": "SuperBlink"
}
webpack-webextension-plugin
should work for every browser in the same way.web-ext
only works with Chrome and Firefox. You should definitely still check it out.Copyright 2018 Henrik Wenz
This project is free software released under the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
9 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 7
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
Found 3/12 approved changesets -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More