File tree 4 files changed +9
-15
lines changed
4 files changed +9
-15
lines changed Original file line number Diff line number Diff line change 19
19
" not ie <= 8"
20
20
],
21
21
"devDependencies" : {
22
+ "axe-core" : " ^3.5.3" ,
22
23
"babel-core" : " ^6.26.0" ,
23
24
"babel-loader" : " ^7.1.2" ,
24
25
"babel-preset-env" : " ^1.6.0" ,
25
26
"babel-preset-stage-3" : " ^6.24.1" ,
26
27
"cross-env" : " ^5.0.5" ,
27
28
"css-loader" : " ^0.28.7" ,
28
29
"file-loader" : " ^1.1.4" ,
30
+ "vue-axe" : " ^1.2.0" ,
29
31
"vue-loader" : " ^13.0.5" ,
30
32
"vue-template-compiler" : " ^2.4.4" ,
31
33
"webpack" : " ^3.6.0" ,
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue'
2
+ import VueAxe from 'vue-axe'
2
3
import App from './App.vue'
3
4
import router from './router.js'
4
5
5
- if ( process . env . NODE_ENV !== 'production' ) {
6
- const VueAxe = require ( '../vue-axe' ) . default
7
- Vue . use ( VueAxe , {
8
- clearConsoleOnUpdate : true
9
- } )
10
- }
6
+ // Don't use this plugin in production => if (process.env.NODE_ENV !== 'production')
7
+ Vue . use ( VueAxe , {
8
+ clearConsoleOnUpdate : true
9
+ } )
11
10
Vue . config . productionTip = false
12
11
13
12
/* eslint-disable no-new */
Original file line number Diff line number Diff line change @@ -54,14 +54,7 @@ module.exports = {
54
54
performance : {
55
55
hints : false
56
56
} ,
57
- devtool : '#eval-source-map' ,
58
- plugins : [
59
- new webpack . DefinePlugin ( {
60
- 'process.env' : {
61
- NODE_ENV : '"development"'
62
- }
63
- } )
64
- ]
57
+ devtool : '#eval-source-map'
65
58
}
66
59
67
60
if ( process . env . NODE_ENV === 'production' ) {
Original file line number Diff line number Diff line change 15
15
"test:e2e" : " node_modules/.bin/cypress run --headless" ,
16
16
"test:e2e:open" : " node_modules/.bin/cypress open " ,
17
17
"project:publish" : " git push --follow-tags origin master && npm publish" ,
18
- "deploy" : " surge ./demo"
18
+ "deploy" : " surge ./demo https://vue-axe.surge.sh/ "
19
19
},
20
20
"repository" : {
21
21
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments