Skip to content

Commit 0408e98

Browse files
committed
Update demo
1 parent 7409e25 commit 0408e98

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

Diff for: demo/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@
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",

Diff for: demo/src/main.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import Vue from 'vue'
2+
import VueAxe from 'vue-axe'
23
import App from './App.vue'
34
import 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+
})
1110
Vue.config.productionTip = false
1211

1312
/* eslint-disable no-new */

Diff for: demo/webpack.config.js

+1-8
Original file line numberDiff line numberDiff 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

6760
if (process.env.NODE_ENV === 'production') {

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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",

0 commit comments

Comments
 (0)