Add a nodemon.json config to watch src and public (ext: astro, ts, html), add nodemon as a devDependency, and change the package.json "dev" script to run nodemon --config nodemon.json --exec 'astro build' (replacing the previous "astro dev"). Also remove the preview script.
6 lines
89 B
JSON
6 lines
89 B
JSON
{
|
|
"verbose": false,
|
|
"watch": ["src/**/*", "public/**/*"],
|
|
"ext": "astro,ts,html"
|
|
}
|