Skip to content

Commit

Permalink
add env checking
Browse files Browse the repository at this point in the history
  • Loading branch information
mryanshenghong committed Jul 27, 2020
1 parent e86165f commit d090ee8
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
import Vue from 'vue'
import App from './App.vue'
import { CreateElement } from 'vue/types/umd'
import './registerServiceWorker'
import router from './router'
import store from './store'
import Vue from 'vue';
import App from './App.vue';
import { CreateElement } from 'vue/types/umd';
import './registerServiceWorker';
import router from './router';
import store from './store';

import './utils/element'
import i18n from './utils/i18n'
import './styles/reset.scss'
import 'element-ui/lib/theme-chalk/display.css'
import './styles/global.scss'
import './utils/element';
import i18n from './utils/i18n';
import './styles/reset.scss';
import 'element-ui/lib/theme-chalk/display.css';
import './styles/global.scss';

Vue.config.productionTip = true
Vue.config.devtools = true
const isDev = process.env.NODE_ENV === 'development' ? true : false;

Vue.config.productionTip = isDev;
Vue.config.devtools = isDev;

new Vue({
router,
store,
i18n,
render: (h: CreateElement) => h(App),
}).$mount('#app')
}).$mount('#app');

0 comments on commit d090ee8

Please sign in to comment.