|
1 | 1 | import Vue from 'vue' |
2 | 2 | import App from './App.vue' |
3 | 3 |
|
4 | | -if (process.env.NODE_ENV !== 'production') { |
5 | | - const VueAxe = require('../vue-axe') |
6 | | - Vue.use(VueAxe, { |
7 | | - config: { |
8 | | - rules: [ |
9 | | - { id: 'heading-order', enabled: true }, |
10 | | - { id: 'label-title-only', enabled: true }, |
11 | | - { id: 'link-in-text-block', enabled: true }, |
12 | | - { id: 'region', enabled: true }, |
13 | | - { id: 'skip-link', enabled: true }, |
14 | | - { id: 'help-same-as-label', enabled: true } |
15 | | - ] |
16 | | - } |
17 | | - }) |
18 | | - Vue.config.productionTip = false |
19 | | -} |
| 4 | +// Use this plugin only in development => if (process.env.NODE_ENV !== 'production') |
| 5 | +const VueAxe = require('../vue-axe') |
| 6 | +Vue.use(VueAxe, { |
| 7 | + config: { |
| 8 | + rules: [ |
| 9 | + { id: 'heading-order', enabled: true }, |
| 10 | + { id: 'label-title-only', enabled: true }, |
| 11 | + { id: 'link-in-text-block', enabled: true }, |
| 12 | + { id: 'region', enabled: true }, |
| 13 | + { id: 'skip-link', enabled: true }, |
| 14 | + { id: 'help-same-as-label', enabled: true } |
| 15 | + ] |
| 16 | + } |
| 17 | +}) |
| 18 | +Vue.config.productionTip = false |
20 | 19 |
|
21 | 20 | /* eslint-disable no-new */ |
22 | 21 | new Vue({ |
|
0 commit comments