improve build script arguments

This commit is contained in:
ading2210 2024-01-23 02:46:19 -05:00
parent 5ecb30d5ed
commit 8ad11cd515
3 changed files with 17 additions and 2 deletions

View file

@ -19,6 +19,10 @@ cd libcurl.js/client
```
Make sure you have emscripten, git, and the various C build tools installed. The build script will generate `client/out/libcurl.js` as well as `client/out/libcurl_module.mjs`, which is an ES6 module.
You can supply the following arguments to the build script to control the build:
- `release` - Use all optimizations.
- `single_file` - Include the WASM binary in the outputted JS using base64.
## Javascript API:
### Importing the Library: