-
<script src="https://unpkg.com/@tailwindcss/browser@4"></script>
how to apply config/plugin on version 4 on CDN like typography plugin, etc..? i get the message "The browser build does not support plugins or config files" so is it no longer supported now for the cdn version or is there another way to add the typography plugin? |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Jan 30, 2025
Replies: 1 comment 2 replies
-
To at least apply config, you can use CSS-based config using <style type="text/tailwindcss">
@theme {
…
}
</style> |
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
As the error message states, you can't use legacy JS-based plugins in the browser.
For safelist, this shouldn't be neccessary since the CDN script scans the page HTML for classes live. Though, the only point here is if you are relying on some class name for entrance transitions - this won't work because the CDN script needs to see the class first before generating the CSS.