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

CSS codemod: Add prefix(…) to necessary CSS imports when a prefix is used. #14519

Draft
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

thecrypticace
Copy link
Contributor

If your config file has the prefix option specified:

/* tailwind.config.js */
export default {
  prefix: 'tw-',
};

We'll migrate it to the new prefix option in CSS:

/* app.css */
@import 'tailwindcss' prefix(tw);

Note: we error on invalid prefixes currently, so if you have a prefix that is not valid, you'll need to update it to a valid one before running the migration.

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.

1 participant