29 lines
760 B
JavaScript
29 lines
760 B
JavaScript
// 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'
|
|
import FastClick from 'fastclick'
|
|
import vConsole from 'vconsole'
|
|
import App from './single-component-app'
|
|
import '../components/_style/global.styl'
|
|
|
|
if ('addEventListener' in document && 'ontouchstart' in window) {
|
|
FastClick.prototype.focus = function (targetElement) {
|
|
targetElement.focus()
|
|
}
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
FastClick.attach(document.body)
|
|
}, false)
|
|
}
|
|
|
|
new vConsole()
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
const isProd = process.env.NODE_ENV === 'production'
|
|
|
|
/* eslint-disable no-new */
|
|
new Vue({
|
|
el: '#app',
|
|
render: h => h(App),
|
|
})
|