Skip to content

Commit 3aeb90d

Browse files
hqzhAkryum
authored andcommitted
docs: 📝 setting (vuejs#859)
Added a short description of how to quick start in oneself project,most people in issue want to find
1 parent 7c58bb6 commit 3aeb90d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,20 @@ This is only necessary when you want to build the extension yourself from source
4040
3. `npm run dev`
4141
4. A plain shell with a test app will be available at `localhost:8100`.
4242

43+
### Quick Start in chrome
44+
45+
```
46+
// Before you create app
47+
Vue.config.devtools = process.env.NODE_ENV === 'development'
48+
49+
// After you create app
50+
window.__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = app.constructor;
51+
52+
// then had to add in ./store.js as well.
53+
Vue.config.devtools = process.env.NODE_ENV === 'development'
54+
55+
```
56+
4357
### Testing as Firefox addon
4458

4559
1. Install `web-ext`

0 commit comments

Comments
 (0)