Skip to main content

npm run watch: Re-Compiling JS and Tailwind

Lesson 03/31 3:25
Autoplay
Mrzalais avatar

If you are getting an error running npm run watch like so

npm ERR! Missing script: "watch"

you can add this script command in package.json under scripts

"scripts": {
...
"watch": "vite build --watch"
},
👍 2