-
Notifications
You must be signed in to change notification settings - Fork 36
Utilities not always getting compiled when using multiple config files #30
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
Comments
Seems I am facing a similar issue. Multiple tailwindcss configs, merged via the preset theme option and since upgrade to tailwind v3 aspect ratio plugin does not work anymore. Updated aspect ratio plugin aswell. |
Hey, we agree the behavior around this is definitely weird. Properly fixing this is a breaking change so we can't fix this until v4 but likely will. You can however workaround this issue by adding a |
Hey thanks for your reply. Really appreciate it. It does make sense now why this happens. I'm gonna have to dive into your proposed solution. Not quite sure what you mean, but I noticed theres some docs on in it. Thanks! |
Hey @robdekort! Basically you just have to add this to module.exports = {
presets: [],
theme: {
colors: {
},
}
} This will remove the implicit default config from that preset, so that the aspect ratio values in the default config don't override the aspect ratio values added in |
Adam, you're a champ. This makes sense and I learned :-) Thank you! |
Uh oh!
There was an error while loading. Please reload this page.
What version of @tailwindcss/aspect-ratio are you using?
v0.4.0
What version of Node.js are you using?
v17.1.0
What browser are you using?
Safari
What operating system are you using?
macOS
Reproduction repository
https://github.com/robdekort/aspect-plugin-issue
Describe your issue
The issue I have started out as a discussion here.
In TW v3 I'm having issues getting (plugin based) aspect utilities compiled.
Reproduce
npm i && npm run watch
Note that the aspect-w-, aspect-h- are not being compiled into site.css. They only get compiled when you require the Aspect Ratio plugin in tailwind.config.2.js
Funny thing is this is isn't an issue with the form plugin. That one works wherever I require it. This wasn't an issue for me in v2. Could this be a bug or was it never intended to work like this?
The text was updated successfully, but these errors were encountered: