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

Check for conflicts #2

Open
nanorepublica opened this issue Nov 1, 2021 · 3 comments
Open

Check for conflicts #2

nanorepublica opened this issue Nov 1, 2021 · 3 comments

Comments

@nanorepublica
Copy link
Member

While testing the extend/preset examples, I was outputting double the classes. This is not great for file sizes, but also will lead to conflicts and would be unclear as to what is actually going to be rendered.

  • Ensure only one class name ever gets generated.
  • Decide on the priority in terms of configs (lower down the tree makes most sense)
@nanorepublica
Copy link
Member Author

If we have repeated tailwind classes in a declaration these also get duplicated - not great for readability and file size, but less of an issue since tailwind itself doesn't deal with this I think.

@nanorepublica
Copy link
Member Author

Questions:

  1. Is it possible to dedup an @apply statement? (ie if text colour is declared twice have only the correct one show up)
  2. Is there a way to know if a plugin has already been declared in a preset? (Declaring this plugin in each preset, generates the content twice)

@nanorepublica
Copy link
Member Author

  1. has been solved using the package tailwind-merge
  2. this is still left unsolved, but perhaps it is not something for the plugin to solve

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

1 participant