vuecli3注意事项
关闭prefetch
vuecli3.0默认会启用prefetch 会将所有js都放到index.html里导致首页加载时间较长,从vue.config.js里关闭
https://cli.vuejs.org/zh/guide/html-and-static-assets.html#prefetch
// vue.config.js |
设置输出目录
// vue.config.js |
打包关闭map
// vue.config.js |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment