mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-15 04:23:12 +03:00
32c611d16d
This commit migrates all our examples to using `wasm-pack build` to compile their code and run `wasm-bindgen`. This should make it a bit easier to understand the examples as there's less to follow during the build step. Webpack projects are all using `@wasm-tool/wasm-pack-plugin` as well so the build step is simple `npm run serve`. Other examples which retain `build.sh` are just using `wasm-pack build` now
15 lines
311 B
JSON
15 lines
311 B
JSON
{
|
|
"scripts": {
|
|
"build": "webpack",
|
|
"serve": "webpack-dev-server"
|
|
},
|
|
"devDependencies": {
|
|
"@wasm-tool/wasm-pack-plugin": "0.2.1",
|
|
"text-encoding": "^0.7.0",
|
|
"html-webpack-plugin": "^3.2.0",
|
|
"webpack": "^4.11.1",
|
|
"webpack-cli": "^3.1.1",
|
|
"webpack-dev-server": "^3.1.0"
|
|
}
|
|
}
|