#javascript #typescript
You can also compile all your TypeScript files down to a single JavaScript file. This can reduce the number of HTTP requests a browser has to make and improve performance on HTTP 1.x sites. To do this use the --out
option like so:
tsc *.ts --out app.js
If you want to change selection, open document below and click on "Move attachment"
Unknown titlejs and someMore.js .
You can also use wildcards too. The following command will compile all TypeScript files in the current folder.
tsc *.ts
All TypeScript files will compile to their corresponding JavaScript files.
Joining Files
<span>You can also compile all your TypeScript files down to a single JavaScript file. This can reduce the number of HTTP requests a browser has to make and improve performance on HTTP 1.x sites. To do this use the --out option like so:
tsc *.ts --out app.js
Watcher
Instead of running the tsc command all the time you can use the option --watch .
tsc *.ts --out app.js --watch
Every time there’s an update to a TypeScript file it’ Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details