webextensions-webpack-boilerplate
A simple boilerplate for developing WebExtensions using webpack.
- babel
- Can create different builds for each browser
- UnitTests with Jest
How to develop
Use npm 6+.
Preparation
npm install
Build
For Chrome:
npm run build-chrome
For Firefox:
npm run build-firefox
Unit tests
Run the all the tests.
npm run test
And here is an useful way that re-run tests automatically when a file has changed.
npm run test-watch
License
webextensions-webpack-boilerplate is published under the MIT license.