一、安装指令
1. npm i typescript -g 全局安装
2. tsc -h 帮助指令
3. npm -init 出现配置文件 tsconfig.json ,常用配置为 target,outFile
4. ctrl+shift+B tsc:监视 - tsconfig.json,然后就可以自动编译 ts 了
5. npm i webpack webpack-cli webpack-dev-server -D
cntian 2020-08-23 11:39 原文
1. npm i typescript -g 全局安装
2. tsc -h 帮助指令
3. npm -init 出现配置文件 tsconfig.json ,常用配置为 target,outFile
4. ctrl+shift+B tsc:监视 - tsconfig.json,然后就可以自动编译 ts 了
5. npm i webpack webpack-cli webpack-dev-server -D