1

When building node projects I have my start script which is:

"start": "nodemon app.js"

and my tailwind script to run the build process:

"tailwind:css": "postcss public/styles/tailwind.css -o public/styles/style.css"

is there any way I can have my nodemon running watching for changes as well as my tailwindcss watching for changes.

I seem to have to stop the nodemon server and then run the tailwind command to rebuild, then start the nodemon server back up to look at the changes I made. I am new to tailwind so I am not sure but there has to be a better approach to this. I would appreciate any help!

aquile hollins
  • 161
  • 1
  • 8
  • 2
    Does this answer your question? [How can I run multiple npm scripts in parallel?](https://stackoverflow.com/questions/30950032/how-can-i-run-multiple-npm-scripts-in-parallel) – Youssouf Oumar Aug 23 '22 at 19:18

1 Answers1

-1

"tailwind:css": "postcss public/styles/tailwind.css -o public/styles/style.css --watch"

Azzarox
  • 27
  • 5