Skip to content

Commit

Permalink
bug: deploy folder change
Browse files Browse the repository at this point in the history
  • Loading branch information
AtHeartEngineer committed Jan 30, 2023
1 parent 89af064 commit 5ab4788
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
target/
dist/
!docs/**/*
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed pkg/8eb16994b1a3632397d2.module.wasm
Binary file not shown.
Binary file removed pkg/aef49a8a32020653a8b9.module.wasm
Binary file not shown.
8 changes: 6 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@ 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: [
new HtmlWebpackPlugin({
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',
Expand Down

0 comments on commit 5ab4788

Please sign in to comment.