From 0408e980218fe784d25eec808e95acf393190396 Mon Sep 17 00:00:00 2001 From: Alan Ktquez Date: Wed, 13 May 2020 00:16:21 -0300 Subject: [PATCH] Update demo --- demo/package.json | 2 ++ demo/src/main.js | 11 +++++------ demo/webpack.config.js | 9 +-------- package.json | 2 +- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/demo/package.json b/demo/package.json index eff1504..9a80cd7 100644 --- a/demo/package.json +++ b/demo/package.json @@ -19,6 +19,7 @@ "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", @@ -26,6 +27,7 @@ "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", diff --git a/demo/src/main.js b/demo/src/main.js index b091664..5aa16a6 100644 --- a/demo/src/main.js +++ b/demo/src/main.js @@ -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 */ diff --git a/demo/webpack.config.js b/demo/webpack.config.js index 63c866c..3331397 100644 --- a/demo/webpack.config.js +++ b/demo/webpack.config.js @@ -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') { diff --git a/package.json b/package.json index 1d99a3e..3bf1c39 100644 --- a/package.json +++ b/package.json @@ -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",