chore(docs): Simple Minification docs (#162)

This commit is contained in:
Erik C. Forés 2020-11-12 13:44:33 +01:00 committed by GitHub
parent a1ea03e1df
commit b52c19df40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,6 +125,14 @@ When an entry file like `src/cli.ts` contains hashbang like `#!/bin/env node` ts
tsup src/index.ts --watch
```
### Minify output
You can also minify the output, resulting into lower bundle sizes by using the `--minify` flag.
```bash
tsup src/index.ts --minify
```
### What about type checking?
esbuild is fast because it doesn't perform any type checking, you already get type checking from your IDE like VS Code or WebStorm.