Support tailwindlabs/tailwindcss-jit
See original GitHub issueIs it planned to generate minimal css with the new tailwindlabs/tailwindcss-jit instead of purging from the traditional huge set of Tailwind classes?
In my use case the files generated by Maizzle become templates consumed by another templating system (.eex / Elixir). As those .eex templates should be up to date during development on each edit, I do a maizzle build production
of all templates on each save. For this use case it would be relevant to improve the build times with tailwindlabs/tailwindcss-jit.
I would be happy to contribute with a PR if you have a hint where to start.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Just-in-Time Mode - Tailwind CSS
Tailwind CSS v2.1 introduces a new just-in-time compiler for Tailwind CSS that generates your styles on-demand as you author your templates instead of ......
Read more >tailwindlabs/tailwindcss-jit - GitHub
An experimental just-in-time compiler for Tailwind CSS that generates your styles on-demand as you author your templates instead of generating everything in ...
Read more >Everything you need to know about Tailwind CSS JIT Compiler
It's an experimental just-in-time compiler for Tailwind CSS that generates your styles on-demand as you author your templates.
Read more >@tailwindcss/jit - npm
An experimental library that generates CSS with the same API you already know from Tailwind CSS, but on-demand as you author your template...
Read more >Tailwind CSS JIT - support - HUGO
Is anyone using this yet? I'm trying to get it to work, but running into issues. baseof.html {{ $styles := resources.Get “css/tailwind.css” ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Using Tailwind’s own purging has now been implemented in #432, and we’ll soon publish a new release.
Remember, to use JIT you will (currently) need to:
maizzle serve
ormaizzle build
(and not for any other environment, because of https://github.com/tailwindlabs/tailwindcss/issues/4071)purge
option in yourtailwind.config.js
, in simplified array syntax (it throws an error and Maizzle build hangs if you omit it or set it to an object, see https://github.com/tailwindlabs/tailwindcss/issues/4094)Example:
Yes we’ll definitely add support for it, just need a bit more time to make sure we don’t break anything and that it works as expected.