Simple LZMA compressor
Use this webpage COMPRESSOR
to compress and save in .hex or .bin
any javascript libs or text file like .OBJ .BVH ...
You only need Extractor.js to decompress you script and
add to you webpage or your worker look examples
i use lzma-wasm engine for compression
simple three example
ammo worker example
import { Extractor } from '../build/Extractor.js'
const extract = new Extractor();
extract.load( ['./hex/three.hex', './hex/ammo.hex', './hex/bvh.hex'], callback, [0,1,2] );
// 0 return javasript main element
// 1 return Blob for send in worker : extract.get('ammo');
// 2 return textfile for any parser : extract.get('bvh');
// callback is the function launch after load and decompression