Commit 75222671 authored by ZeMKI's avatar ZeMKI
Browse files

Update app.js

set Vue into production mode.
parent bdeaad01
......@@ -25,6 +25,16 @@ require('./bootstrap');
window.Vue = require('vue');
Vue.component('v-select', vSelect)
if (process.env.MIX_ENV_MODE === 'production') {
Vue.config.devtools = false;
Vue.config.debug = false;
Vue.config.silent = true;
}else{
Vue.config.devtools = true;
Vue.config.debug = true;
Vue.config.silent = false;
}
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
......@@ -45,9 +55,6 @@ Vue.component('new-token', require('./components/newtokenmodal.vue').default);
Vue.component('action-table', require('./components/actiontable.vue').default);
Vue.component('user-table', require('./components/usertable.vue').default);
Vue.config.devtools = true;
Vue.config.debug = true;
Vue.config.silent = false;
var bus = new Vue();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment