Compare commits
2 commits
6c926855e2
...
1ff0acbaf8
Author | SHA1 | Date | |
---|---|---|---|
1ff0acbaf8 | |||
23d61ee1b0 |
3 changed files with 6 additions and 2 deletions
|
@ -5,7 +5,8 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "yarn build:client && yarn build:server",
|
"build": "./render.sh",
|
||||||
|
"build:targets": "yarn build:client && yarn build:server",
|
||||||
"build:client": "tsc -b && vite build --outDir dist/client",
|
"build:client": "tsc -b && vite build --outDir dist/client",
|
||||||
"build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx",
|
"build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
yarn build
|
yarn "build:targets"
|
||||||
|
|
||||||
PROD='dist/prod'
|
PROD='dist/prod'
|
||||||
rm -r "$PROD"
|
rm -r "$PROD"
|
||||||
|
|
|
@ -22,4 +22,7 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
server: {
|
||||||
|
host: "127.0.0.1",
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue