Skip to content

Commit 7c97660

Browse files
committed
Add existing options to docs
1 parent 0419eed commit 7c97660

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,40 @@ yarn serve
7575
yarn build
7676
```
7777

78+
## Plugin options
79+
80+
Plugin options can be set inside your `vue.config.js`:
81+
82+
```js
83+
// vue.config.js
84+
module.exports = {
85+
pluginOptions: {
86+
browserExtension: {
87+
options: {
88+
// options...
89+
}
90+
}
91+
}
92+
}
93+
```
94+
95+
- **components**
96+
- Type: `Object.<string, boolean>`
97+
98+
The browser extension components that will be managed by this plugin.
99+
100+
Valid components are:
101+
- popup
102+
- options
103+
- contentScript
104+
- standalone
105+
106+
```js
107+
components: {
108+
popup: true,
109+
contentScript: true
110+
}
111+
```
78112

79113
## Testing
80114
This library is following the standard styling of vue projects, and those are really the only tests to perform.

0 commit comments

Comments
 (0)