Replies: 1 comment 3 replies
-
You really cannot use any form of Tailwind CSS locally? If not, you could consider using Tailwind Play to generate the CSS and then copy-paste into your project. For margin rules, you could consider using a regular expression safelist like: /** @type {import('tailwindcss').Config} */
module.exports = {
safelist: [
{
pattern: /^m.?-(\d+(.\d+)?|auto|px)$/,
},
],
// …
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I make a website with vanilla HTML, CSS and JS. And I use Tailwindcss with CDN. I use Tailwindcss for most styles of my site but load all CDN is not good for performance in production. But I can't use Tailwindcss in another way like PostCSS or CLI. It's possible to include for example only margin style ? Or do you have a solution for improve the performance ?
(I work with an association and the previous team made the site like this and I can not change)
Thank you
Beta Was this translation helpful? Give feedback.
All reactions