0

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.

2
  • 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 Commented Jun 17, 2022 at 16:19
  • @pylwalker Yes this is the tailwind.config.js module.exports = { content: [ "./src/**/*.{html, js}", ], theme: { extend: {}, }, plugins: [], } Commented Jun 17, 2022 at 16:28

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.