update vue-loader

This commit is contained in:
Pan
2017-08-28 22:59:09 +08:00
parent f7aee3b5a3
commit bae698c9ad
4 changed files with 3 additions and 4 deletions

View File

@@ -1 +1 @@
module.exports = file => require('@/views/' + file + '.vue')
module.exports = file => require('@/views/' + file + '.vue').default

View File

@@ -1,7 +1,7 @@
import Vue from 'vue'
import Router from 'vue-router'
const _import = require('./_import_' + process.env.NODE_ENV)
// in development env not use Lazy Loading,because Lazy Loading large page will cause webpack hot update too slow.so only in production use Lazy Loading
// in development env not use Lazy Loading,because Lazy Loading too many pages will cause webpack hot update too slow.so only in production use Lazy Loading
Vue.use(Router)