should fix playground build

This commit is contained in:
Vitaly Turovsky 2024-09-11 02:35:29 +03:00
commit 1446ccc0a7
2 changed files with 5 additions and 2 deletions

View file

@ -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": [

View file

@ -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,