Skip to content

Commit

Permalink
Merge pull request #63 from Pauan/master
Browse files Browse the repository at this point in the history
Various quality of life improvements.
  • Loading branch information
xtuc committed Jul 2, 2019
2 parents a3b2486 + fd9c07b commit acf57a7
Show file tree
Hide file tree
Showing 6 changed files with 136 additions and 1,208 deletions.
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
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

0 comments on commit acf57a7

Please sign in to comment.