You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using this extension for a while now and I've found it very useful. Thanks for sharing your work.
I'm now trying to add support to a different project in the same solution. The second project will have different classes and less of them, but I haven't been able to find a way to do this. At the moment, changes to any one of the two input files pushes the changes to both output files.
It seems that there can only be 1 tailwind.config.js defined in the tailwind.extension.json and only 1 tailwind.extension.json file in the project.
Is this scenario supported? I'm quite new to tailwind, so maybe there's something I can do with the tailwind config?
The text was updated successfully, but these errors were encountered:
Unfortunately, as you pointed out, the extension only works with one tailwind.config.js in the entire solution. Depending on how different your configuration files are (i.e. plugins, prefixes, etc.), there may be some workarounds.
For building, you can use @config in your css files, which allows you to specify the correct Tailwind configuration file to your input css file and classes should build properly if you link your input and output files in the tailwind.extension.json file. This approach works best if your theme values/plugins are the same in your Tailwind configuration files (different contents will work), but builds will still work if they are not. As for setting your tailwind.config.js file, you can choose any file; it is only used to determine classes for non-build features like IntelliSense or linting.
Hopefully this helps - if you are still running into any issues, please let me know! I'll try to add support for this in the future, and we can keep this issue open until I do.
I've been using this extension for a while now and I've found it very useful. Thanks for sharing your work.
I'm now trying to add support to a different project in the same solution. The second project will have different classes and less of them, but I haven't been able to find a way to do this. At the moment, changes to any one of the two input files pushes the changes to both output files.
It seems that there can only be 1 tailwind.config.js defined in the tailwind.extension.json and only 1 tailwind.extension.json file in the project.
Is this scenario supported? I'm quite new to tailwind, so maybe there's something I can do with the tailwind config?
The text was updated successfully, but these errors were encountered: