update vue-loader
This commit is contained in:
@@ -1 +1 @@
|
||||
module.exports = file => require('@/views/' + file + '.vue')
|
||||
module.exports = file => require('@/views/' + file + '.vue').default
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user