@@ -27,43 +27,24 @@ This is only necessary when you want to build the extension yourself from source
27
27
** Make sure you are using Node 6+ and NPM 3+**
28
28
29
29
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`
32
32
4 . Open Chrome extension page
33
33
5 . Check "developer mode"
34
34
6 . Click "load unpacked extension", and choose ` shells/chrome ` .
35
+ 7 . You can also use ` yarn dev:chrome ` to build & watch the unpacked extension.
35
36
36
37
### Development
37
38
38
39
1 . Clone this repo
39
- 2 . ` npm install`
40
- 3 . ` npm run dev`
40
+ 2 . ` yarn install`
41
+ 3 . ` yarn run dev`
41
42
4 . A plain shell with a test app will be available at ` localhost:8100 ` .
42
43
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
-
57
44
### Testing as Firefox addon
58
45
59
46
1 . Install ` web-ext `
60
47
61
- ~~~~
62
- $ npm install --global web-ext
63
- ~~~~
64
-
65
- Or, for Yarn:
66
-
67
48
~~~~
68
49
$ yarn global add web-ext
69
50
~~~~
@@ -77,13 +58,27 @@ Vue.config.devtools = process.env.NODE_ENV === 'development'
77
58
2 . Build and run in Firefox
78
59
79
60
~~~~
80
- $ npm run build
81
- $ npm run run:firefox
61
+ $ yarn run build
62
+ $ yarn run run:firefox
82
63
~~~~
83
64
84
65
When using Yarn, just replace `npm` with `yarn`.
85
66
86
67
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
+
87
82
### Common problems and how to fix
88
83
89
84
1 . Fixing "Download the Vue Devtools for a better development experience" console message when working locally over ` file:// ` protocol:
0 commit comments