Skip to content

jlegrone/optimize-wasm-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date
Dec 25, 2018
Feb 15, 2019
Feb 5, 2019
Dec 25, 2018
Feb 15, 2019
Dec 25, 2018
Dec 25, 2018
Dec 25, 2018
Jul 8, 2019
Dec 25, 2018
May 11, 2019

Repository files navigation

npm node deps tests cover size

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.

License

Apache 2.0