npm install --save-dev node-sass nodemon
"build-css": "node-sass -o css css"
// Where the first 'css' is the destination directory for compiled output.
// Second 'css' is the source folder with sass/scss files
// -o is shorthand for --output
e.g. "build-css": "node-sass --output [destination-directory-for-output] [sass-source-file-directory]"
"watch-css": "nodemon -e sass -x \"npm run build-css\""
// Where the '-e sass' tells nodemon to monitor files with that extension. Shorthand for '--ext'
// (e.g. 'nodemon -e sass,scss' will watch both types of sass files and restart on changes)
// The '-x' (shorthand for '--exec') will execute the following script
I suggest you to have a look at vite: https://vitejs.dev.
It's a simple and yet very powerful tool to build your js project and also to work locally with all the things you would expect to have like auto reload on save etc.