2018-03-26 16:04:04 +08:00
|
|
|
// The Vue build version to load with the `import` command
|
|
|
|
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
|
|
|
|
import Vue from 'vue'
|
2018-08-16 11:49:38 +08:00
|
|
|
import FastClick from 'fastclick'
|
2018-03-26 16:04:04 +08:00
|
|
|
import App from './single-component-app'
|
|
|
|
import '../components/_style/global.styl'
|
|
|
|
|
2018-08-16 11:49:38 +08:00
|
|
|
if ('ontouchstart' in window) {
|
|
|
|
FastClick.attach(document.body)
|
|
|
|
}
|
|
|
|
|
2018-03-26 16:04:04 +08:00
|
|
|
Vue.config.productionTip = false
|
|
|
|
|
|
|
|
const isProd = process.env.NODE_ENV === 'production'
|
|
|
|
|
|
|
|
/* eslint-disable no-new */
|
|
|
|
new Vue({
|
|
|
|
el: '#app',
|
|
|
|
render: h => h(App),
|
|
|
|
})
|