tailwindlabs / tailwindcss

A utility-first CSS framework for rapid UI development.
https://tailwindcss.com/
MIT License
83.27k stars 4.22k forks source link

Upgrade: don't show error during upgrade when analyzing external URL import #15040

Closed RobinMalfait closed 3 days ago

RobinMalfait commented 3 days ago

This PR improves the output of the upgrade tool when we are handling imports and the import happens to be an external URL.

External URLs shouldn't and can't be upgraded, so printing an error message doesn't help the user.

Additionally, if an @import is using the url(…) function, then we skip over it and continue with the rest of the imports.

Before After
image image

Running this on github.com/parcel-bundler/parcel

Before After
image image