菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
279
0

TypeScript 环境搭建:

原创
05/13 14:22
阅读数 95088

TypeScript 环境搭建:
1、初始化package.json
npm init -y
2、初始化 tsc
tsc --init
产生 tsconfig.json 文件
3、ts运行环境
npm i webpack webpack-cli webpack-dev-sever -D
4、ts-loader 安装
npm i ts-loader typerscript -D
5、html-webpack-plugin 安装
npm i html-webpack-plugin -D
6、clean-webpack-plugin 安装
npm i clean-webpack-plugin -D
7、webpack-merge 安装
npm i webpack-merge -D
8、运行
npm start
9、打包
npm run build

10、typescript 语法提醒:
npm i typings -g 重启

发表评论

0/200
279 点赞
0 评论
收藏
为你推荐 换一批