optimize-wasm-webpack-plugin
v1.0.12
Published
Webpack plugin for optimizing the size of wasm files
Downloads
235
Readme
optimize-wasm-webpack-plugin
This plugin uses binaryen to optimize your WebAssembly.
Requirements
This module requires a minimum of Node v6.11.5 and Webpack v4.0.0.
Getting Started
To begin, you'll need to install optimize-wasm-webpack-plugin
:
$ npm install optimize-wasm-webpack-plugin --save-dev
Then add the plugin to your webpack
config. For example:
webpack.config.js
const OptimizeWasmPlugin = require('optimize-wasm-webpack-plugin');
module.exports = {
optimization: {
minimizer: [new OptimizeWasmPlugin()],
},
};
And run webpack
via your preferred method.