tailwindcss-rails icon indicating copy to clipboard operation
tailwindcss-rails copied to clipboard

Compiled CSS is too large

Open AndrewVos opened this issue 4 years ago • 1 comments

Describe the problem:

Using a fresh rails 6 app, install this gem and follow all the instructions. Use a few utilities in some html. Deploy to production on Heroku. If you look at the size of the resulting CSS, it's over 60kb.

This is unexpected because, from the tailwindcss docs:

image

Link to a minimal reproduction:

The code: https://github.com/AndrewVos/testing-tailwind

The live app on Heroku: https://testing-tailwind.herokuapp.com/

AndrewVos avatar Sep 07 '20 22:09 AndrewVos

Ok here's a commit that actually works: https://github.com/AndrewVos/testing-tailwind/commit/993f348dba9abac6fdc9f2c6d55bdbf17773c85e

AndrewVos avatar Sep 08 '20 09:09 AndrewVos