bug: deploy folder change

This commit is contained in:
AtHeartEngineer
2023-01-30 08:46:23 +00:00
parent 89af06462c
commit 5ab4788d38
15 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
node_modules/
target/
dist/
!docs/**/*

1
docs/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@

View File

Binary file not shown.

Binary file not shown.

View File

@@ -6,7 +6,7 @@ const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
module.exports = {
entry: './bootstrap.js',
output: {
path: path.resolve(__dirname, 'pkg'),
path: path.resolve(__dirname, 'docs'),
filename: 'bundle.js',
},
plugins: [
@@ -14,7 +14,11 @@ module.exports = {
template: 'index.html'
}),
new WasmPackPlugin({
crateDirectory: path.resolve(__dirname, ".")
crateDirectory: path.resolve(__dirname, "."),
outDir: path.resolve(__dirname, "docs"),
release: true,
target: "web",
args: "--no-typescript",
})
],
mode: 'development',