mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-10-06 03:09:59 +08:00
30 lines
653 B
JavaScript
30 lines
653 B
JavaScript
// 兼容 IE
|
|
// https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md#babelpolyfill
|
|
import 'core-js/stable'
|
|
import 'regenerator-runtime/runtime'
|
|
|
|
import Vue from 'vue'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import store from './store'
|
|
|
|
// 设置 js中可以访问 $cdn
|
|
import { $cdn } from '@/config'
|
|
Vue.prototype.$cdn = $cdn
|
|
|
|
// 全局引入按需引入UI库 vant
|
|
import '@/plugins/vant'
|
|
// 引入全局样式
|
|
import '@/assets/css/index.scss'
|
|
|
|
// filters
|
|
import './filters'
|
|
Vue.config.productionTip = false
|
|
|
|
new Vue({
|
|
el: '#app',
|
|
router,
|
|
store,
|
|
render: h => h(App)
|
|
})
|