Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force include dynamic tailwind classes? #798

Closed
tettoffensive opened this issue Oct 13, 2022 · 1 comment
Closed

Force include dynamic tailwind classes? #798

tettoffensive opened this issue Oct 13, 2022 · 1 comment

Comments

@tettoffensive
Copy link

If I have something like this:

<template type="amp-mustache">
 <div class="day col-start-{{col}}">

The problem is that none of the tailwind classes will be included in the compiled html. I wonder if there might be a way to force include certain tailwind classes I need?

@cossssmin
Copy link
Member

As mentioned in the Tailwind CSS documentation, this is not possible. You need to write the class name in full, i.e. col-start-1.

Also if you have removeUnusedCSS: true in your Maizzle config.*.js file (default when building for production), you'll need to safelist templating language delimiters, as mentioned in #797.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants