When developing a single vue file, if there is a lot of static HTML, such as static content such as guidelines and protocols. If you also use .vue files, they will eventually be packaged into js, resulting in a much larger file after packaging. How did you handle it?
仅有的幸福2017-05-19 10:37:31
Control in the route file to download each .vue file on demand like this
const Home = resolve => {
require.ensure(['../components/base/Home.vue'],() => {
resolve(require('../components/base/Home.vue'))
},'')
}