![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
配置
weixin_38879321
前端程序员
展开
-
nginx代理vue
一、nginx代理vue的意义 vue打包后,因为开发环境设置代理 proxy 的原因, 使得访问打包页面 dist/index.html 请求数据出现跨域。 nginx代理vue的意义在于把开发环境中的代理 proxy: {'/api': ... 的/api, 换成生产环境中的地址。 二、下载nginx nginx官网下载并解压,推荐使用稳定版本(nginx/Windows-1.18.0) 三、vue打包 npm run build // 打包文件 (默认)生成文件夹 dist 四、放入ngi原创 2022-03-21 10:09:08 · 5218 阅读 · 1 评论 -
vscode配置
{ // vscode默认启用了根据文件类型自动设置tabsize的选项 "editor.detectIndentation": false, // 重新设定tabsize "editor.tabSize": 2, // #每次保存的时候自动格式化 "editor.formatOnSave": true, // #每次保存的时候将代码按eslint格式进行修复,vscode es6语法检测配置 "editor.codeActionsOnSave": { "source原创 2022-03-14 18:20:34 · 287 阅读 · 0 评论