Skip to content

Commit

Permalink
Update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ktquez committed May 13, 2020
1 parent 7409e25 commit 0408e98
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
2 changes: 2 additions & 0 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
"not ie <= 8"
],
"devDependencies": {
"axe-core": "^3.5.3",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.0",
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.0.5",
"css-loader": "^0.28.7",
"file-loader": "^1.1.4",
"vue-axe": "^1.2.0",
"vue-loader": "^13.0.5",
"vue-template-compiler": "^2.4.4",
"webpack": "^3.6.0",
Expand Down
11 changes: 5 additions & 6 deletions demo/src/main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import Vue from 'vue'
import VueAxe from 'vue-axe'
import App from './App.vue'
import router from './router.js'

if (process.env.NODE_ENV !== 'production') {
const VueAxe = require('../vue-axe').default
Vue.use(VueAxe, {
clearConsoleOnUpdate: true
})
}
// Don't use this plugin in production => if (process.env.NODE_ENV !== 'production')
Vue.use(VueAxe, {
clearConsoleOnUpdate: true
})
Vue.config.productionTip = false

/* eslint-disable no-new */
Expand Down
9 changes: 1 addition & 8 deletions demo/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,7 @@ module.exports = {
performance: {
hints: false
},
devtool: '#eval-source-map',
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"development"'
}
})
]
devtool: '#eval-source-map'
}

if (process.env.NODE_ENV === 'production') {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test:e2e": "node_modules/.bin/cypress run --headless",
"test:e2e:open": "node_modules/.bin/cypress open ",
"project:publish": "git push --follow-tags origin master && npm publish",
"deploy": "surge ./demo"
"deploy": "surge ./demo https://vue-axe.surge.sh/"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 0408e98

Please sign in to comment.