摘要:
tsc watch模式,具有webpack的模块概念,不会因为不在依赖链中的文件的事件触发编译。 tsc --watch ts-node 安装: $ yarn global add ts-node ts-loader 配合webpack使用,前端是一定需要编译的,但是有babel,还有后端,好乱。 阅读全文
摘要:
tsc 优点:可以生成.d.ts类型声明文件。 tsconfig.json: { "compilerOptions": { "outDir": "dist", "declaration": true, "declarationDir": "dist", }, "files": ["src/index 阅读全文