52.vue.config.js

1.vue.config.js 打包配置

解析
https://mp.weixin.qq.com/s/wyCfkuNXuhSzXn6_3eTtkg
https://blog.csdn.net/josiecici/article/details/107950429
cdn
https://jackiehao.blog.csdn.net/article/details/109000355
https://blog.csdn.net/qq_40279656/article/details/107805720

2.gzip压缩

https://blog.csdn.net/weixin_42541498/article/details/103908516
Cannot read property ‘tapPromise‘ of undefined
https://blog.csdn.net/qq379682421/article/details/111574290

3.增加版本号

https://blog.csdn.net/zyf13671493506/article/details/112324318

4.多余work.js

https://blog.csdn.net/weixin_45484574/article/details/111867013

5.css更名

https://segmentfault.com/q/1010000019051613/a-1020000019700106

6.mini-css-extract-plugin

link 进页面
原始通过style-loader,可以把解析出来的css通过js插入内部样式表的方式到页面中
https://blog.csdn.net/weixin_42420703/article/details/103747523

7.vue.config.js配置优化

https://www.shangmayuan.com/a/de98c7a2cb5d46d8a0e7e93c.html

8.vue.config.js与config文件夹

https://blog.csdn.net/weixin_41791737/article/details/105809313

9.删除console.log()

https://www.cnblogs.com/loveliang/p/13706431.html

10.proxy重叠代理 proxy 以前面的优先

https://blog.csdn.net/weixin_44072916/article/details/122451702
https://blog.csdn.net/achabuhecha/article/details/125083644

11.vue设置全局样式

https://www.cnblogs.com/zwh0910/p/15638801.html
https://blog.csdn.net/xy13983447577/article/details/122198614

12.前端发版后清理浏览器缓存

https://blog.csdn.net/kanshanhui/article/details/128671202
https://blog.51cto.com/u_15726982/6195160
https://blog.csdn.net/qq_28827635/article/details/109602150
https://gitee.com/ren_chun_li/work-problem

axios /local /local/gdn
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容