[Parcel] Running TypeScript with parcel-bundler
2024-09-30 09:49:35
TO get started with TypeScirpt quickly in your local computer is using parcel-bunlder:
npm i -g parcel-bundler
Create a index.html:
<!DOCTYPE html>
<html lang="en"> <head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head> <body> <script src="./index.ts"></script>
</body> </html>
Create a index.ts, put whatever you want.
Run:
parcel index.html
parcel run take care everything for you.
最新文章
- apache 虚拟主机详细配置:http.conf配置详解
- mysql通过sql语句如何批量去掉某一个表中某一个字段的下面的相同部分字符串
- php微信接口实例
- [CLR via C#]15. 枚举类型和位标志
- 原码 &; 反码 &; 补码 &; 详解
- .net中Web.config文件的基本原理及相关设置
- MapReduce编程小结
- vc++窗口的创建过程(MFC消息机制的经典文章)
- shell的逻辑运算符
- Python 科学计算-介绍
- [ZJOI2017]树状数组
- 卷积神经网络之AlexNet
- win10 系统 wifi自动断开连接 wifi热点不稳定
- struts2自定义转换器
- Finance公式说明
- SqlServer 技术点总结(持续更新)
- array_rand
- Mybatis动态公用sql
- Java归去来第4集:java实战之Eclipse中创建Maven类型的SSM项目
- linux下mysql 启动命令