File tree 2 files changed +16
-8
lines changed
2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1
1
import Vue from 'vue'
2
- import VueAxe from '../vue-axe'
3
2
import App from './App.vue'
4
3
import router from './router.js'
5
4
6
- // Use this plugin only in development => if (process.env.NODE_ENV !== 'production')
7
- Vue . use ( VueAxe , {
8
- clearConsoleOnUpdate : true
9
- } )
5
+ if ( process . env . NODE_ENV !== 'production' ) {
6
+ const VueAxe = require ( '../vue-axe' ) . default
7
+ Vue . use ( VueAxe , {
8
+ clearConsoleOnUpdate : true
9
+ } )
10
+ }
10
11
Vue . config . productionTip = false
11
12
12
13
/* eslint-disable no-new */
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ module.exports = {
16
16
'vue-style-loader' ,
17
17
'css-loader'
18
18
]
19
- } , {
19
+ } , {
20
20
test : / \. v u e $ / ,
21
21
loader : 'vue-loader' ,
22
22
options : {
@@ -41,7 +41,7 @@ module.exports = {
41
41
} ,
42
42
resolve : {
43
43
alias : {
44
- ' vue$' : 'vue/dist/vue.esm.js' ,
44
+ vue$ : 'vue/dist/vue.esm.js' ,
45
45
'@' : path . resolve ( __dirname , 'src' )
46
46
} ,
47
47
extensions : [ '*' , '.js' , '.vue' , '.json' ]
@@ -54,7 +54,14 @@ module.exports = {
54
54
performance : {
55
55
hints : false
56
56
} ,
57
- devtool : '#eval-source-map'
57
+ devtool : '#eval-source-map' ,
58
+ plugins : [
59
+ new webpack . DefinePlugin ( {
60
+ 'process.env' : {
61
+ NODE_ENV : '"development"'
62
+ }
63
+ } )
64
+ ]
58
65
}
59
66
60
67
if ( process . env . NODE_ENV === 'production' ) {
You can’t perform that action at this time.
0 commit comments