yaoyao1987 / vue-cli-multipage

vue-cli多页面应用
541 stars 140 forks source link

vue-cli 懒加载配置 #18

Open sherfruit opened 7 years ago

sherfruit commented 7 years ago

你好 项目中想要实现懒加载 如何去修改webpack的配置呢?谢谢

yaoyao1987 commented 7 years ago

引入插件即可,比如说vue-lazyload,https://github.com/hilongjw/vue-lazyload

sherfruit commented 7 years ago

npm run dev之后是Cannot GET

yaoyao1987 commented 7 years ago

image