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