How can I run nodemon and tailwind at the same time?

Viewed 97

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!

1 Answers

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

Related