This template allows you to quickly start a web extension containing:
- Boilerplate for
manifest.jsonandbackground.jsfiles, and foricons/popupfolders, - Vue,
- Vue-router (configurable),
- Vuex (configurable),
- Webpack,
- CSS extraction,
- A script for removing
evalusages to comply with the Content Security Policy of Chrome/Firefox web store, is automatically called for each build, - A script to package your extension into a
.zipfile.
$ vue init kocal/vue-web-extension my-extension
$ cd my-extension
$ npm install
$ npm run buildBuild the extension into dist folder for production.
Build the extension into dist folder for development.
Watch for modifications then run npm run build.
Watch for modifications then run npm run build:web.
Build a zip file following this format <name>-v<version>.zip, by reading name and version from manifest.json file.
Zip file is located in dist-zip folder.