1.0.4 • Published 5 years ago

wasm-pack-watcher-plugin v1.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

Usage

$ yarn add -D wasm-pack-watcher-plugin
// webpack.config.js
// ...
const WasmPackWatcherPlugin = require('wasm-pack-watcher-plugin')

// ...

module.exports = {
	// ...
	plugins: [
		// ...
		new WasmPackWatcherPlugin({
			sourceRoot: path.resolve(__dirname, 'rs'),    // default: __dirname/src
			crateRoot: path.resolve(__dirname),           // default: __dirname
			mode: "release"                               // default: release
		})
	]
}

The plugin will watch ./rs for file changes, and execute wasm-pack build --release in ./.

Please ensure wasm-pack is in your $PATH.

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago