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
Copy file name to clipboardExpand all lines: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,17 @@ Browser extension development plugin for vue-cli 3.x
3
3
4
4
## What does it do?
5
5
This is intended to be a vue-cli@3.x replacement for [https://github.com/Kocal/vue-web-extension](https://github.com/Kocal/vue-web-extension).
6
+
6
7
This plugin adds a new command `ext-serve` to your vue applications.
7
8
This new command is only for running a livereload server while testing out your browser extension.
9
+
8
10
This removes the entrypoint of `main.js`, and as such will not scaffold a general vue app.
9
11
That behavior might change when support for a standalone tab application exists, but for now it is gone.
10
-
Packaging and deploying will still be done with `yarn build` and zipping in up for chrome, firefox, or whichever other browser you wish to develop for.
12
+
13
+
Packaging and deploying will still be done with `yarn build` and zipping in up for Chrome, Firefox, or whichever other browser you wish to develop for.
14
+
11
15
It makes some assumptions about your project setup.
12
-
I hope to be able to scaffold an app so that itentifying the below in unnecessary.
16
+
I hope to be able to scaffold an app so that identifying the below in unnecessary.
13
17
14
18
```
15
19
|- src/
@@ -46,8 +50,10 @@ This can be added to your vuejs project by one of the following methods:
46
50
## Usage
47
51
Running the Livereload server.
48
52
This will build and write to the local `dist` directory.
53
+
49
54
This plugin will respect the `outputDir` setting, however it cannot read into passed CLI args, so if you require a custom output dir, be sure to add it in your `vue.config.js` file.
50
55
You can then add this as an unpacked plugin to your browser, and will continue to update as you make changes.
56
+
51
57
**NOTE:** you cannot get HMR support in the popup window, however, closing and reopening will refresh your content.
0 commit comments