Skip to content

Why I need to use PostCSS to build Tailwind on React in order to used it, when using Vue I just need to import the CSS? #2355

Answered by swyxio
marco-carvalho asked this question in Help
Discussion options

You must be logged in to vote

@marco-carvalho not really the framework's fault, its the build tooling you are using.

vue-loader installs postcss for you by default, whereas other tooling (eg create-react-app) does not.

if you used different build tools you may have easier default options, eg vite https://github.com/sorxrob/vite-react-tailwind-starter/

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by marco-carvalho
Comment options

You must be logged in to vote
1 reply
@swyxio
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants