Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various quality of life improvements. #63

Merged
merged 3 commits into from
Jul 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
package-lock.json
yarn.lock
xtuc marked this conversation as resolved.
Show resolved Hide resolved
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ yarn add --dev @wasm-tool/wasm-pack-plugin

We expect `wasm-pack` to be in your `$PATH`. See [installation here](https://github.com/rustwasm/wasm-pack/blob/master/docs/src/setup.md#installing-wasm-pack).

The minimum required `wasm-pack` version is `0.8.0`

## Usage

Add the loader in your `webpack.config.js`:
Expand Down Expand Up @@ -40,6 +42,12 @@ module.exports = {
// path.resolve(__dirname, "another-crate/src")
// ],

// The same as the `--out-dir` option for `wasm-pack`
// outDir: "pkg",

// The same as the `--out-name` option for `wasm-pack`
// outName: "index",

// If defined, `forceWatch` will force activate/deactivate watch mode for
// `.rs` files.
//
Expand Down
139 changes: 46 additions & 93 deletions example/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions example/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[package]
name = "wasm-pack-test"
version = "0.1.0"
authors = ["Sven SAULEAU <sven@sauleau.com>"]
authors = ["Sven Sauleau <sven@sauleau.com>"]

[lib]
crate-type = ["cdylib"]

[dependencies]
wasm-bindgen = "0.2"

wasm-bindgen = "=0.2.45"
Loading