返回
01
02
03
04+1
05
06
07+2
08
09
10
11• 112• 113
14
15• 1
16
17
1819
20
21• 1
22
23
24
25• 226• 1
27
28
29中秋、国庆• 1
30中秋、国庆

9 月 29 日 · 周五

中秋、国庆
1 条

麦门🙏

9 月 26 日 · 周二

1 条

疯狂提前多发

9 月 25 日 · 周一

2 条

eslint flat config 的一个优势或许是 pnpm 不用再 hoist eslint 相关的依赖

之前抄 @nmdfzf404 的 prettier 配置来处理 pnpm-lock.yaml 的格式化,最近确定 https://github.com/planet-matrix/prettier-config 时发现他也移除了全部的 plugin,哈哈哈。 除了保持配置的简洁,现在我还可以添加这一条配置,来让 pnpm 完全不提升依赖。 public-hoist-pattern[]=""

9 月 23 日 · 周六

2 条

确实,除非不用 tailwindcss

How to deploy a static website using nginx on @Railway without setting PORT variable? Just change entry script to following code!

9 月 21 日 · 周四

1 条

9 月 19 日 · 周二

2 条

9 月 18 日 · 周一

3 条

今天才知道,npx 有个 -p 的参数,可以指定 npx 执行命令用的包。这样如果你非要强迫症不使用 npm 安装任何全局包的话,想用 ni 可以写个这样的 alias。

例子可能不太好,ni 不适用于这种用法,会导致没有读到当前目录下的 .npmrc。

就喜欢把 tsconfig 拉到最严格,然后什么都要类型安全,路由,i18n,网络请求。

9 月 15 日 · 周五

1 条

nice 可以用,不用转接头了

9 月 13 日 · 周三

1 条

💢怒买一个 typec 的耳机,希望我的小米能用。

9 月 12 日 · 周二

1 条

看起来,和 pnpm 不一样的是,bun install 会默认把没有列出的依赖提升到 node_modules。没找到可以配置的地方。

9 月 11 日 · 周一

1 条

一个我觉得还蛮好的 VS Code 设置项。因为我不太想在编辑器左上角展示面包屑,又想知道当前文件所处路径。 "breadcrumbs.enabled": false, "window.title": "${activeFolderLong}${separator}${rootName}",

9 月 7 日 · 周四

2 条

想了想,感觉没有必要的情况下真不用上 Next.js。如果只是需要 ssr 的话,用 Vite 加上 h3 也能完成。 1. React 本身提供 renderToString 和 hydrateRoot 2. Vite 本身支持作为 middleware 来处理 ssr https://vitejs.dev/guide/ssr.html 3. 配合 swr,只需要在服务端提供预渲染的数据就好

我写了个 demo,得易于 Vite 方便的 ssr 支持,这并不复杂。

9 月 4 日 · 周一

2 条

就感觉很酷,才注意到是 @_xLog 的 contributor 的话,评论会有标识。

好耶🤩是偶像的关注