#modify package.json
7 messages · Page 1 of 1 (latest)
"build" : "vite build" goes inside the "scripts" block
"scripts":{
"build":"vite build",
...
hehe not quite.
put 3 backticks (the character above tab key)``
then paste your script into the chat here
and close with
``` 3 more backticks
heres my package.json:
{
"name": "sandthrax",
"private": true,
"version": "0.0.0",
"type": "module",
"description": "A verlet physics simulation",
"main": "main.js",
"scripts": {
"start": "vite --port 3008 --host",
"dev": "vite --port 3008 --host",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"three": "^0.175.0"
},
"devDependencies": {
"vite": "^6.2.0"
}
}