Standalone CLI: multiple inputs and outputs #7698
HashNotAdam
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've started using the Standalone CLI as part of the tailwindcss-rails gem alongside the new paradigms like importmap and have really appreciated the simplicity of a Node-free deployment process, thank you.
I have been running into issues with the CLI only accepting 1 input and output file, however. My app has multiple sub-domains that are completely independent. Some components are shared between sub-domains while others exist only in one area. As part of the management of a complex app, styles are grouped into component sheets. In the Node/Webpack days, these would be imported as needed into sub-domain specific stylesheets. This is, of course, less efficient in an HTTP/2 world and I now want to load each of those smaller stylesheets directly.
While this isn't an issue when deploying since the deploy script can call the CLI once per sheet that needs to be processed by Tailwind, I haven't been able to see a way to implement the watch functionality without bringing in another dependency that can run multiple instances of the CLI.
A lot of the use for these stylesheets is styling elements outside of our control so simply changing how we manage components isn't going to solve the problem. It would be marvellous if there was a way to either supply a pattern or arrays to the CLI to allow multiple files to be watched and built
Beta Was this translation helpful? Give feedback.
All reactions