Skip to content

Commit 9ef8ac8

Browse files
Akryumsp1ker
authored andcommitted
docs(readme): updates
1 parent e855187 commit 9ef8ac8

File tree

1 file changed

+21
-26
lines changed

1 file changed

+21
-26
lines changed

README.md

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,43 +27,24 @@ This is only necessary when you want to build the extension yourself from source
2727
**Make sure you are using Node 6+ and NPM 3+**
2828

2929
1. Clone this repo
30-
2. `npm install` (Or `yarn install` if you are using yarn as the package manager)
31-
3. `npm run build`
30+
2. `yarn install`
31+
3. `yarn run build`
3232
4. Open Chrome extension page
3333
5. Check "developer mode"
3434
6. Click "load unpacked extension", and choose `shells/chrome`.
35+
7. You can also use `yarn dev:chrome` to build & watch the unpacked extension.
3536

3637
### Development
3738

3839
1. Clone this repo
39-
2. `npm install`
40-
3. `npm run dev`
40+
2. `yarn install`
41+
3. `yarn run dev`
4142
4. A plain shell with a test app will be available at `localhost:8100`.
4243

43-
### Quick Start in chrome
44-
45-
```js
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-
5744
### Testing as Firefox addon
5845

5946
1. Install `web-ext`
6047

61-
~~~~
62-
$ npm install --global web-ext
63-
~~~~
64-
65-
Or, for Yarn:
66-
6748
~~~~
6849
$ yarn global add web-ext
6950
~~~~
@@ -77,13 +58,27 @@ Vue.config.devtools = process.env.NODE_ENV === 'development'
7758
2. Build and run in Firefox
7859

7960
~~~~
80-
$ npm run build
81-
$ npm run run:firefox
61+
$ yarn run build
62+
$ yarn run run:firefox
8263
~~~~
8364

8465
When using Yarn, just replace `npm` with `yarn`.
8566

8667

68+
### Force enable the devtools
69+
70+
```js
71+
// Before you create app
72+
Vue.config.devtools = process.env.NODE_ENV === 'development'
73+
74+
// After you create app
75+
window.__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = app.constructor
76+
77+
// then had to add in ./store.js as well.
78+
Vue.config.devtools = process.env.NODE_ENV === 'development'
79+
80+
```
81+
8782
### Common problems and how to fix
8883

8984
1. Fixing "Download the Vue Devtools for a better development experience" console message when working locally over `file://` protocol:

0 commit comments

Comments
 (0)