DEV Community

Discussion on: Webpacker 6: Tailwind CSS 2.0 Integration

Collapse
 
juanvqz profile image
Juan Vasquez • Edited

do we need sass and sass-loader when using tailwind css? (because it was added in a previous post).

EDIT:
I tried to push this config in Heroku and it returns an error when compiling assets.

   warn - Tailwind is not purging unused styles because no template paths have been provided.
       warn - If you have manually configured PurgeCSS outside of Tailwind or are deliberately not removing unused styles, set `purge: false` in your Tailwind config file to silence this warning.
       warn - https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css

 !
 !     Precompiling assets failed.
 !
 !     Push rejected, failed to compile Ruby app.
 !     Push failed
Enter fullscreen mode Exit fullscreen mode

I found the solution here

rails webpacker:install updates my yarn.lock