An open API service indexing awesome lists of open source software.

https://github.com/splurf/wlrs-wasm


https://github.com/splurf/wlrs-wasm

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# wlrs-wasm

## Build
```bash
trunk build --release
wasm-opt --strip-debug dist/*.wasm -o dist/*.wasm
wasm-opt dist/*.wasm -Oz -o dist/*.wasm
```

## Production
```bash
cp -r dist/* /var/www/wlrs
```

## NGINX Configuration
```nginx
# /etc/nginx/sites-enabled/default

# serve the home page
location = / {
rewrite ^ /index.html last;
}

# overwrite default type for WASM files
location ~* .*\.wasm$ {
default_type application/wasm;
}
```