You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This template allows you to quickly start a web extension containing:
4
+
5
+
- Boilerplate for `manifest.json` and `background.js` files, and for `icons` / `popup` folders,
6
+
- Vue,
7
+
- Vue-router (configurable),
8
+
- Vuex (configurable),
9
+
- Webpack,
10
+
- CSS extraction,
11
+
- A Bash script for removing `eval` usages to comply with the Content Security Policy of Chrome/Firefox web store, is automatically called at each build,
12
+
- A Python script to automatically bundle your extension into a zip file.
13
+
14
+
## Requirements
15
+
16
+
- Node.js >= 6 and npm >= 3,
17
+
-[git](https://git-scm.com),
18
+
-[vue-cli](https://github.com/vuejs/vue-cli)
19
+
3
20
## Usage
4
21
5
22
```bash
6
-
$ npm install -g vue-cli
7
23
$ vue init kocal/vue-web-extension my-extension
8
24
$ cd my-extension
9
25
$ npm install
10
26
$ npm run build
11
27
```
12
28
29
+
### `npm run build`
30
+
31
+
Build the extension into `dist` folder.
32
+
33
+
### `npm run watch`
34
+
35
+
Watch modifications then run `npm run build`
36
+
37
+
### `python scripts/build-zip`
38
+
39
+
Build a zip-file following this format « `<name>`-`<version>`.zip », by reading `name` and `version` from `manifest.json` file.
0 commit comments