You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-14Lines changed: 8 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,25 +32,19 @@ Precompiled NIF binaries are available for `x86_64-linux`, `aarch64-linux`, `aar
32
32
33
33
A precompiled WebAssembly binary is also available with each release. This lets you run the full Tailwind compiler in any WASM runtime — browsers, Deno, Cloudflare Workers, etc.
34
34
35
-
To install the WASM binary alongside the NIF during `mix compile`:
35
+
To install the WASM binary during `mix compile`, set `TAILWIND_WASM_PATH` to the
36
+
directory or file path where it should be saved:
36
37
37
38
```bash
38
-
#Download to the default cache location
39
-
TAILWIND_COMPILER_WASM=true mix compile
39
+
#Install to a directory (saved as tailwind_compiler.wasm)
The directory must already exist or compilation will fail. When unset, no WASM
47
+
binary is downloaded.
54
48
55
49
The WASM binary exports three functions: `alloc`, `free`, and `compile`. See the [WASM Playground](https://beaconcms.github.io/tailwind_compiler/) source for a complete browser integration example.
0 commit comments