Skip to content

fix(@angular/build): prevent build failures with remote CSS imports when Tailwind is configured#28116

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:http-css-import
Jul 29, 2024
Merged

fix(@angular/build): prevent build failures with remote CSS imports when Tailwind is configured#28116
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:http-css-import

Conversation

@alan-agius4
Copy link
Collaborator

This addresses a bug where @import url() statements with remote CSS files (ending in .css) caused build errors when Tailwind was present. The issue arised from incorrect handling of remote URLs by the stylesheet plugin, which treated them as local files. This fix ensures proper handling of remote CSS imports.

Closes #28113

@alan-agius4 alan-agius4 requested a review from clydin July 26, 2024 09:41
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jul 26, 2024
@alan-agius4 alan-agius4 force-pushed the http-css-import branch 2 times, most recently from ebaa462 to a30e306 Compare July 29, 2024 14:27
…hen Tailwind is configured

This addresses a bug where `@import url()` statements with remote CSS files (ending in .css) caused build errors when Tailwind was present. The issue arised from incorrect handling of remote URLs by the stylesheet plugin, which treated them as local files. This fix ensures proper handling of remote CSS imports.

Closes angular#28113
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 29, 2024
@alan-agius4 alan-agius4 merged commit 7d52941 into angular:main Jul 29, 2024
@alan-agius4 alan-agius4 deleted the http-css-import branch July 29, 2024 14:40
@alan-agius4
Copy link
Collaborator Author

The changes were merged into the following branches: main, 18.1.x

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

esbuild: Using Tailwind breaks stylesheet processing for CSS @imports with URLs ending in .css

2 participants