-
Notifications
You must be signed in to change notification settings - Fork 10
[feature request] --minify
option
#30
Comments
--minify
option
Yeah that should be added also. Does this option just remove spaces and newlines, or what does it actually do? |
I think this should be doable with the current implementation. First you need to iterate and group all the classes based on the Also at the end, all the spaces and newlines should be stripped resulting in the minified string. |
Hello, First of all thanks for this awesome project! One solution for the minification might be to use https://docs.rs/lightningcss/1.0.0-alpha.39/lightningcss |
I will try to make a PR based on the information you provided! |
I don't think you need regex for this. You could use |
Since there are CSS commentouts in preflight.css, I was doubt if I need to remove the commentouts in my minify process. |
Tailwind Play keeps these comments in so I think we should too and only remove then when minifying. In this case, you're right about using Regex to remove them. |
Add
--minify
option to railwind_css.Tailwind CSS provides the following features
Optimizing for Production
The text was updated successfully, but these errors were encountered: