Skip to content

Commit 4c695dc

Browse files
authored
update with status + flag
1 parent f369f32 commit 4c695dc

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
<img src="https://storage.googleapis.com/hwhistlr.appspot.com/og/kuto.jpeg" width="200" height="105" alt="Kuto tool logo" />
2-
31
🌈 Kuto makes updating your site's JS better, faster, harder, stronger.
42
It reduces your download size by re-using code you've already shipped.
53
Read more [on the blog](https://samthor.au/2024/kuto/)! 🌈
64

5+
<img src="https://storage.googleapis.com/hwhistlr.appspot.com/og/kuto.jpeg" width="200" height="105" alt="Kuto tool logo" />
6+
7+
[![Tests](https://github.com/samthor/kuto/actions/workflows/tests.yml/badge.svg)](https://github.com/samthor/kuto/actions/workflows/tests.yml)
8+
79
It does this by splitting JS files (in ESM) into 'main' and static parts.
810
The static parts can be cached by clients forever, as they have no side-effects, and can be used as a 'corpus' or dictionary of code that can be called later.
911
Chromium even caches [the bytecode](https://v8.dev/blog/code-caching-for-devs) of previously shipped files.
@@ -73,6 +75,11 @@ By default, this looks in the output dir, but you can change it with a flag.
7375
(This may not actually be the best way to keep chunks around.
7476
This flag will probably evolve over time.)
7577

78+
- `-n <name>` use this basename for the output (default: basename of input)
79+
80+
Normally, Kuto creates output files with the same name as the input files.
81+
Instead, use this to output e.g., "index.js" regardless of source name.
82+
7683
## Best Practice
7784

7885
One good way to understand what Kuto does is to run `./release.sh`, which builds Kuto itself.

0 commit comments

Comments
 (0)