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

Support custom VitePlugins in the Tina config #4388

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

coreyaus
Copy link
Contributor

@coreyaus coreyaus commented Dec 2, 2023

Notes

  • This is intended to provide advanced ways to customise the Admin Portal build output.
  • One example use case is to provide a custom tailwind plugin (similar to the TinaTailwind plugin) and build CSS for any custom React components we load in the Tina Admin portal via Tina field plugins.
    • Otherwise the Tailwind classes we use in Tina field plugins do not appear in the Tina Admin portal CSS.
  • Hopefully this will help requests like the one here: 🔌 Plugins – How to use tailwind styles with plugins? #3912

@coreyaus coreyaus requested a review from a team as a code owner December 2, 2023 00:08
Copy link

changeset-bot bot commented Dec 2, 2023

🦋 Changeset detected

Latest commit: a24db35

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 21 packages
Name Type
@tinacms/schema-tools Minor
@tinacms/cli Minor
tinacms-authjs Patch
tinacms Patch
@tinacms/graphql Patch
@tinacms/mdx Patch
@tinacms/search Patch
starter-basic-iframe Patch
starter-empty Patch
e2e-next Patch
@tinacms/self-hosted-starter Patch
kitchen-sink-starter Patch
@tinacms/starter Patch
next-tinacms-cloudinary Patch
next-tinacms-dos Patch
next-tinacms-s3 Patch
tinacms-clerk Patch
@tinacms/app Patch
@tinacms/vercel-previews Patch
@tinacms/datalayer Patch
tinacms-gitprovider-github Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This is intended to provide advanced ways to customise the Admin Portal build output. One example use case is to provide a custom tailwind plugin (similar to the TinaTailwind plugin) and build CSS for any custom React components we load in the Tina Admin portal via Tina field plugins. Otherwise the Tailwind classes we use in Tina field plugins do not appear in the Tina Admin portal CSS.
@coreyaus coreyaus force-pushed the add-vite-plugins-to-tina-config branch from 78c0f37 to a24db35 Compare December 2, 2023 00:17
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

Successfully merging this pull request may close these issues.

None yet

1 participant