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

https://github.com/niklus/codetrim

A simple example of minifying code with wasm. Compiled with golang.
https://github.com/niklus/codetrim

golang minify-css minify-html minify-javascript minify-json wasm

Last synced: 3 months ago
JSON representation

A simple example of minifying code with wasm. Compiled with golang.

Awesome Lists containing this project

README

        

# Codetrim

Minify JS, CSS, HTML, and JSON with WASM

## [codetrim.dev](https://codetrim.dev/)

## Commands

```bash
GOOS=js GOARCH=wasm go build -o static/wasm/main.wasm main.go
```

```bash
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" ./static/wasm
```