Replies: 1 comment
-
|
What is the recommended way to include/exclude files depending on environment (dev/prod)? Has anybody solved this in their tailwind 4 config? We are still stuck with the js file. CSS file just isn't as flexible and dynamic. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the standalone build of tailwindcss in a golang project with templ. Specifically templui.
I pull in the components using go's package manager. The components are outside the project in a path
${GOPATH}/pkg/mod/github.com/axzilla/templuiSo I have to manually expand the GOPATH variable here:
@source "${GOPATH}/pkg/mod/github.com/axzilla/templui@*/**/*.{go,templ}";It would be especially nice if this could be automatic. It would help support other languages like golang.
An alternative and is to support templ and golang directly. That would be absolutely amazing but probably quite complex and getting a bit too specific. I think the variable expansion is the simplest approach for now.
Beta Was this translation helpful? Give feedback.
All reactions