encoded-uint8array-loader
v1.0.3
Published
Minified byte array (Uint8Array) loader for webpack
Downloads
537
Readme
encoded-uint8array-loader
Encoded byte array (Uint8Array
) loader for webpack.
Optimized vs bin-loader because output is around 30% smaller.
Installation
# npm install encoded-uint8array-loader
Usage
This is the module.rules
option to inline a .wasm
file as a Uint8Array
:
{ test: /\.wasm$/, type: 'javascript/auto', loader: 'encoded-uint8array-loader' }
Credits
Song (github.com/pawsong) for code from their bin-loader
License
MIT