Skip to content

Multiple tailwind configurations for one website #3587

Answered by adamwathan
avigoldman asked this question in Help
Discussion options

You must be logged in to vote

I think you're only truly integrated option will be digging into customizing the webpack config and manually configuring two instances of postcss-loader that look at different sources and have an inline configuration so you can pass in different options unfortunately.

Another option is to compile your CSS out of process (using the Tailwind CLI or similar) and just compile those files using dedicated scripts. You can have a tailwind.app.config.js file and a tailwind.marketing.config.js file and just pass those names to the Tailwind CLI on the command line.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@avigoldman
Comment options

@rezamirzapour
Comment options

@berksafran
Comment options

@wongjn
Comment options

wongjn Mar 5, 2023
Collaborator

@williamtstanley
Comment options

Answer selected by avigoldman
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
8 participants