File tree Expand file tree Collapse file tree 4 files changed +9
-15
lines changed Expand file tree Collapse file tree 4 files changed +9
-15
lines changed Original file line number Diff line number Diff line change 1919 " not ie <= 8"
2020 ],
2121 "devDependencies" : {
22+ "axe-core" : " ^3.5.3" ,
2223 "babel-core" : " ^6.26.0" ,
2324 "babel-loader" : " ^7.1.2" ,
2425 "babel-preset-env" : " ^1.6.0" ,
2526 "babel-preset-stage-3" : " ^6.24.1" ,
2627 "cross-env" : " ^5.0.5" ,
2728 "css-loader" : " ^0.28.7" ,
2829 "file-loader" : " ^1.1.4" ,
30+ "vue-axe" : " ^1.2.0" ,
2931 "vue-loader" : " ^13.0.5" ,
3032 "vue-template-compiler" : " ^2.4.4" ,
3133 "webpack" : " ^3.6.0" ,
Original file line number Diff line number Diff line change 11import Vue from 'vue'
2+ import VueAxe from 'vue-axe'
23import App from './App.vue'
34import router from './router.js'
45
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+ } )
1110Vue . config . productionTip = false
1211
1312/* eslint-disable no-new */
Original file line number Diff line number Diff line change @@ -54,14 +54,7 @@ module.exports = {
5454 performance : {
5555 hints : false
5656 } ,
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'
6558}
6659
6760if ( process . env . NODE_ENV === 'production' ) {
Original file line number Diff line number Diff line change 1515 "test:e2e" : " node_modules/.bin/cypress run --headless" ,
1616 "test:e2e:open" : " node_modules/.bin/cypress open " ,
1717 "project:publish" : " git push --follow-tags origin master && npm publish" ,
18- "deploy" : " surge ./demo"
18+ "deploy" : " surge ./demo https://vue-axe.surge.sh/ "
1919 },
2020 "repository" : {
2121 "type" : " git" ,
You can’t perform that action at this time.
0 commit comments