tailwindlabs / discuss

A place to ask questions, get help, or share what you've built with Tailwind CSS.
MIT License
171 stars 9 forks source link

Adding additional tailwind configuration to postcss #137

Open dolbex opened 6 years ago

dolbex commented 6 years ago

Based on this discussion @adamwathan stated that two tailwind configurations are definitely possible in a custom webpack config. I don't see a clear way of adding two configs to the postcss.config.js. Is there some way I could add it to the webpack config directly?

Specifically, I have two .scss files I want to output to css using two different configurations.

romanzipp commented 6 years ago

Same issue here, haven't found a solution yet. Anything new on that?

adamwathan commented 6 years ago

You'll probably need to figure out a way to create a webpack configuration that lets you point explicitly to two separate PostCSS configuration files. Looks like you can change the config path here: https://github.com/postcss/postcss-loader#options

romanzipp commented 6 years ago

I've managed to get two tailwind configs working using two webpack.mix files and the laravel-mix-merge-manifest package. But I will have a look at the PostCSS configuration. Thanks!