A simple tool to build a WebExt. This tool can:
- Compress css and js files
- Build four version, include: Firefox xpi, Mozilla AMO, Chrome crx, Chrome Webstore
-
Install nodejs and npm
-
Run
npm install
-
Rename
config.sample.json
toconfig.json
, and fill some informations in it -
If you require build Firefox xpi version, you should modify
node_modules/sign-addon/dist/sign-addon.js
, about line 432:
// Old code:
return _extends({
id: data.guid
}, result);
// Modify to:
return _extends({
id: data.guid,
raw_data: data
}, result);
- Run
node build.js ext_name
(ext_name
is you set inconfig.json
)