optimize-wasm-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

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

Package Sidebar

Install

npm i optimize-wasm-webpack-plugin

Weekly Downloads

18

Version

1.0.12

License

Apache-2.0

Unpacked Size

18.6 kB

Total Files

7

Last publish

Collaborators

  • jlegrone