Hawtim

Results 47 comments of Hawtim

在 vue-cli3 以上,打包后的 index.html 已经加上了 preload prefetch 和 preconnect。可以在生产环境搞搞优化了。

补充场景:使用 webpack federation 时,以子应用启动端口监听,主应用本地启动并配置了 lazyCompilation,以 8000 端口作为服务时,会出现页面加载不到的问题。

Reference: 1. https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator 2. https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Optional_chaining 3. https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Logical_OR

> 好像指定不同dns,取到的ip也不同呢…… > > ```shell > ➜ ~ nslookup raw.githubusercontent.com 114.114.114.114 > Server: 114.114.114.114 > Address: 114.114.114.114#53 > > Non-authoritative answer: > raw.githubusercontent.com canonical name = github.map.fastly.net. > Name: github.map.fastly.net...

> 谢谢,可以用,但是下载速度好慢.... 如果有代理(梯子)的话,可以在设置命令行代理,那样速度会快很多

> ![image](https://user-images.githubusercontent.com/56109788/103482926-b3f38b00-4e1e-11eb-8de8-f9bb84f04d2d.png) > 求解! 先输入 ping raw.githubusercontent.com 得到一个 ip 地址,那样才是你能访问并且最快的。

> > > 谢谢,可以用,但是下载速度好慢.... > > > > > > 如果有代理(梯子)的话,可以在设置命令行代理,那样速度会快很多 > > 请问具体要怎么设置代理梯子呢? 如果你用 clash ,右键任务栏会有个复制链接到 命令行 的操作。 如果你用 ss ,你需要在设置里找到对应的端口。 假设你的端口是 12333,在你的终端里输入 `export http_proxy=http://127.0.0.1:12333`

> 浏览器明明可以访问raw,但cli下就不行(比如用curl和cmake的file函数)。什么道理0.0. 你可以了解一下命令行代理 https://github.com/hawtim/blog/issues/10#issuecomment-770568520

update: 出于一般工作都不是一天就可以完成的,修改成以周为维度的 TODO 管理

## 参考链接 https://code.visualstudio.com/docs/supporting/faq#_resolving-shell-environment-is-slow-error-warning https://stackoverflow.com/questions/33258543/how-can-i-exclude-a-directory-from-visual-studio-code-explore-tab