Skip to content

upgrade to 4.0.0 - not able to automatically port tailwind.config.js #15940

Answered by wongjn
romankoho asked this question in Help
Discussion options

You must be logged in to vote

Could the plugins be a potential cause?

Could be. Also could be the typography key, since there's no equivalent in v4.

Does that mean that all these plugins are legacy and could be replaced by something else (or Tailwind can do all of this itself)?

It means that JavaScript-based plugins are legacy. At least @tailwindcss/aspect-ratio has a built-in alternative using the aspect-ratio CSS-native property.

Moreover, do I have to use the @import directive for every entry in my content array?

No. @import is for including other CSS files. Like what import is in JS/TS files.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@romankoho
Comment options

@wongjn
Comment options

@romankoho
Comment options

Answer selected by romankoho
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