Fork of daniellemaywood.uk/gleam — Wasm codegen work
355 B
17 lines
1<!--
2 SPDX-License-Identifier: Apache-2.0
3 SPDX-FileCopyrightText: 2021 The Gleam contributors
4-->
5
6# Compiler WASM
7
8```sh
9# Install the build tool with cargo or brew etc
10cargo install wasm-pack
11
12# Build the wasm library
13wasm-pack build --release --target web
14
15# Make a tarball to attach to a release
16tar -C pkg/ -czvf gleam-v1.1.0-browser.tar.gz .
17```