Skip to content

Conversation

@jshrssll
Copy link

@jshrssll jshrssll commented Aug 4, 2020

This feature enables users to export the CSS variables into an separate file so that they are not bundled with the compiled tailwind.css file. This enables portability and easy theming across multiple sites & design systems that are derived from a single tailwind.css file.

This is a personal use case I'm facing and rather hacking the installed node_module files, I would love to see this feature supported in the distributed package.

There are two new options that are checked outputToFile and outputFilePath. Descriptions of their use can be found in the README.

@omarkhatibco
Copy link
Owner

Hi @splurtcake,

thanks for your pull request I don't think it's a good idea to use fs here since PostCSS handle eveything.

I'm thinking about a better idea, what about something like @tailwind root directive same as @tailwind base or tailwind utilities?

it's would be a clean approach for this plugin and less code for us, but I still need to ask Tailwind maintainer about this approach before implementing it.

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

Successfully merging this pull request may close these issues.

2 participants