From b52c19df40653e6e932a909bc230d395f0abe62a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20C=2E=20For=C3=A9s?= Date: Thu, 12 Nov 2020 13:44:33 +0100 Subject: [PATCH] chore(docs): Simple Minification docs (#162) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index d122079..7a81728 100644 --- a/README.md +++ b/README.md @@ -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.