javascript - How to handle large sections of static HTML in vue single file development
为情所困
为情所困 2017-05-19 10:35:31
0
1
506

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?

为情所困
为情所困

reply all(1)
仅有的幸福

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'))
  },'')
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template