Initial upload
This commit is contained in:
commit
8d953e1252
13 changed files with 7521 additions and 0 deletions
22
webpack.config.js
Normal file
22
webpack.config.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
const path = require("path")
|
||||
const HTMLWebpackPlugin = require("html-webpack-plugin")
|
||||
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin")
|
||||
|
||||
module.exports = {
|
||||
entry: "./public/main.js",
|
||||
output: {
|
||||
path: path.resolve(__dirname, "dist"),
|
||||
filename: "index.js",
|
||||
},
|
||||
plugins: [
|
||||
new HTMLWebpackPlugin({
|
||||
template: "./public/index.html",
|
||||
}),
|
||||
new WasmPackPlugin({
|
||||
crateDirectory: path.resolve(__dirname, "."),
|
||||
}),
|
||||
],
|
||||
experiments: {
|
||||
asyncWebAssembly: true,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue