Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

项目启动后前端报错 #3

Open
Weixinxin1994 opened this issue Apr 17, 2020 · 1 comment
Open

项目启动后前端报错 #3

Weixinxin1994 opened this issue Apr 17, 2020 · 1 comment

Comments

@Weixinxin1994
Copy link

image

@Zhengqbbb
Copy link
Owner

@Weixinxin1994 早期对于webpack的处理没有很好区分环境。直接在index.html对vue,router等进行了CDN的处理,直接打包后生成的静态文件就放在服务端进行托管了。所以要解决的话:
1.首先注释掉index.html中的cdn链接:
微信截图_20200418212215
2.注释掉vue.config.js中externals:
微信截图_20200418212654
3.还有一个bug已修复:将web中的环境变量文件夹拖出src中
微信截图_20200418212941

谢谢啦。比较推荐的学习视频:https://www.bilibili.com/video/BV1A4411Y7fi

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants