altafino / react-webpack-5-tailwind-2

React 17 Boilerplate with Webpack 6, Tailwind 2, using babel, SASS/PostCSS, HMR, dotenv and an optimized production build
MIT License
295 stars 68 forks source link

Tailwind JIT not working #24

Open jonmh85 opened 3 years ago

jonmh85 commented 3 years ago

Does this setup work with tailwinds JIT mode?

I have tried adding the mode to the tailwind config and also tried adding TAILWIND_MODE=watch to the dev env file but neither seem to work. when JIT is enabled tailwind class changes are only visible in the browser if i restart the dev server.

jonmh85 commented 3 years ago

I can see that if I change the static asset location to src rather than dist it does detect the tailwind jit changes and pushes to browser. Maybe css needs to be processed differently for dev and build.

wmonecke commented 2 years ago

@jonmh85 Did you find a solution?