SCSS to minified CSS with liquid templating #1546
Unanswered
tomtrigenex
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Nope. PostCSS can't do it out of the box. But you can write a custom parser if you really want to do it with PostCSS (but it will be better to use a chain of specific tools). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, Im hoping someone can point me in the right direction.
I'm trying to convert SCSS into minified CSS. Normally I'd use an online tool or similar however it contains a lot of liquid templating that id like to be respected.
Would postcss be suitable for this or do you know of any other that might help please ?
Many thanks for your time !
Regards,
Tom
example
.site-footer { {% if section.settings.bg_footer_color != '' %} background: {{ section.settings.bg_footer_color }}; {% endif %} . . @media (max-width: 767px) { .footer-top .col-footer { border-bottom: 1px solid {{ section.settings.bg_footer_color }}; } } }
Beta Was this translation helpful? Give feedback.
All reactions