Initial upload

This commit is contained in:
rzmk 2021-10-28 13:25:32 -04:00
commit 8d953e1252
13 changed files with 7521 additions and 0 deletions

22
webpack.config.js Normal file
View 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,
},
}