fanshide's recent timeline updates
fanshide's repos on GitHub
JavaScript · 1 watchers
cuitfanshide-blog
TypeScript · 1 watchers
deno-learning
Personal learning and practice of deno
1 watchers
electron-updater-debug
Electron -updater, which is generally bug maintained by individuals
TypeScript · 1 watchers
node-server-boilerplate
node server boilerplate using koa
JavaScript · 1 watchers
react-boilerplate
react boilerplate
JavaScript · 1 watchers
redux-source-code-learning
learning of redux source code
JavaScript · 1 watchers
wechat-server
A local server for wechat
0 watchers
lowcode-engine
An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系
0 watchers
react
The library for web and native user interfaces
0 watchers
react-dnd
Drag and Drop for React
0 watchers
react-interpretation-old
React 源码解析
Objective-C · 0 watchers
reactNativeLearning
JavaScript · 0 watchers
toy-react
JavaScript · 0 watchers
youdao-translate-cli
A translate cli for coder
fanshide

fanshide

🏢  全栈
V2EX member #334925, joined on 2018-07-24 10:48:50 +08:00
Young Coder
fanshide's recent replies
看过《鬼影实录》后,很合理
本地开发的话一般不需要使用 module-alias,tsconfig.json 中的 paths 就可以了,但要让打包后项目中模块路径查找正常的话就需要加入 module-alias,最好在入口文件判断环境变量来觉得使用使用 module-alias,比如:
```js
// addAlias.ts
import moduleAlias from 'module-alias'
import path from 'path'

export default () => {
moduleAlias.addAliases({
'@share': path.join(__dirname, 'src/share')
})
}

```

```js
// app.ts
import addAlias from './addAlias'

if (process.env.NODE_ENV !== 'development') {
addAlias()
}
```
funny
Jan 3, 2019
Replied to a topic by EridanusSora Node.js Node 二进制合并大量文件
pipe?
@qingtengHRBP 老哥,前天投了
养只比你笨的猫,每天回家看到它都会很开心
欢迎 http://www.cuitfanshide.com/ ,👏👏👏
写 blog 受益很多,但是养成这个习惯太难
Oct 30, 2018
Replied to a topic by xuyl Node.js mongoose 查询问题求教
map 内部是不支持异步的,推荐了解下 for await of ;或者先得到一个 promise 数组,再使用 Promise.all()
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2891 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 05:25 · PVG 13:25 · LAX 22:25 · JFK 01:25
♥ Do have faith in what you're doing.