Skip to content

Commit

Permalink
fixed github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrolistical committed Feb 27, 2024
1 parent 2ba91ae commit 2d6f455
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion docs/assets/index-B0JOGk47.js

This file was deleted.

1 change: 1 addition & 0 deletions docs/assets/index-CadGmGpN.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}

</style>
<script type="module" crossorigin src="/assets/index-B0JOGk47.js"></script>
<script type="module" crossorigin src="https://pyrolistical.github.io/zig-wasm-canvas/assets/index-CadGmGpN.js"></script>
</head>

<body>
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
"test": "vitest",
"build:zig": "zig build-exe index.zig -target wasm32-freestanding -femit-bin=dist/index.wasm -fno-entry --export=_draw --export=allocUint8 --export=free",
"build:vite": "vite build",
"prebuild": "rm -rf dist docs && mkdir dist docs",
"build": "npm run build:zig && npm run build:vite",
"postbuild": "cp -r dist/* docs/"
"prebuild": "rm -rf docs && mkdir docs",
"build": "npm run build:zig && npm run build:vite"
},
"author": "Ronald Chen <[email protected]>",
"license": "Apache-2.0",
Expand Down
8 changes: 5 additions & 3 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export default {
build: {
target: "esnext",
},
base: "https://pyrolistical.github.io/zig-wasm-canvas",
build: {
outDir: "./docs",
target: "esnext",
},
};

0 comments on commit 2d6f455

Please sign in to comment.