wingsuit-designsystem / wingsuit

Twig for Storybook
GNU General Public License v2.0
91 stars 16 forks source link

Use tailwindcss core JIT instead of @tailwindcss/jit package. #151

Closed miloskroulik closed 3 years ago

miloskroulik commented 3 years ago

According to https://blog.tailwindcss.com/tailwindcss-2-1 there will be no further development of https://github.com/tailwindlabs/tailwindcss-jit and users are encouraged to use the JIT compiler in the core.

This also requires some changes in tailwind.config.js file - I tried to translate current purge settings as closely as possible, but some docs changes will be probably needed (especially regarding to the safelist.txt file.

christianwiedemann commented 3 years ago

Thanks!

miloskroulik commented 3 years ago

Well, there are further changes in purge configuration in recent versions, so this probably won't work correctly in 2.2.x versions (see https://github.com/tailwindlabs/tailwindcss/releases#built-in-safelist-transform-and-extract-support). I will test the new version when I have a bit of time and create a new PR if needed).