Skip to content

Commit

Permalink
should fix playground build
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Sep 10, 2024
1 parent f9b87d5 commit 1446ccc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"watch-mesher": "pnpm build-mesher -w",
"run-playground": "run-p watch-mesher watch-other-workers watch-playground",
"run-all": "run-p start run-playground",
"build-playground": "rsbuild build --root ./prismarine-viewer",
"build-playground": "rsbuild build --config prismarine-viewer/rsbuild.config.ts",
"watch-playground": "rsbuild dev --root ./prismarine-viewer"
},
"keywords": [
Expand Down
5 changes: 4 additions & 1 deletion prismarine-viewer/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ export default mergeRsbuildConfig(
appAndRendererSharedConfig(),
defineConfig({
html: {
template: './playground.html',
template: join(__dirname, './playground.html'),
},
output: {
cleanDistPath: false,
distPath: {
root: join(__dirname, './dist'),
},
},
server: {
port: 9090,
Expand Down

0 comments on commit 1446ccc

Please sign in to comment.