I am using tailwind css to apply styling to my react project but the issue I have is whenever I apply any css class, I have to kill my dev server and retart the dev server for the css changes to appear. I followed all the procedures to install tailwind css using npm. I need a solution to this problem so that the changes appear as I save it.
Asked
Active
Viewed 320 times
0
-
Do you add the paths to all of your template files in your tailwind.config.js file [https://tailwindcss.com/docs/guides/create-react-app](https://tailwindcss.com/docs/guides/create-react-app) – pylwalker Jun 17 '22 at 16:19
-
@pylwalker Yes this is the tailwind.config.js module.exports = { content: [ "./src/**/*.{html, js}", ], theme: { extend: {}, }, plugins: [], } – Skynet Jun 17 '22 at 16:28
1 Answers
1
You can use npm package called nodemon
which automatically restarts the server whenever the changes are encountered.
For the installation use this link
To integrate nodemon
with your project follow this link.

krishnaacharyaa
- 14,953
- 4
- 49
- 88