【发布时间】:2020-07-15 08:42:31
【问题描述】:
我正在使用 create-react-app 和 TypeScript 模板来管理我的 React 项目 (yarn create react-app my-app --template typescript)
当我运行react-scripts build 时,我的代码内置在/build 文件夹中。如何自定义这个目录?
我试图在tsconfig.json 中更改compilerOptions 中的outDir,但这似乎被CRA 忽略了。
【问题讨论】:
标签: reactjs typescript create-react-app