Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use @import instead of @tailwind #1079

Closed
wants to merge 1 commit into from
Closed

Use @import instead of @tailwind #1079

wants to merge 1 commit into from

Conversation

tonysm
Copy link

@tonysm tonysm commented Jun 30, 2022

I've also made this change proposal in Breeze: laravel/breeze#165
This was changed in this PR: #1060

But I think packages can benefit more from using the postcss-import style in the main TailwindCSS setup.

In the Rich Text Laravel package, for instance, I dump some CSS file to the resources/css/ folder and in order to be able to add the @import "./_trix.css"; line to the main CSS file, I'd need to swap the entire file for a version of it using @import, which can be problematic since developers could have added more things to it and all.

If this was webpack, we would have to install the postcss-import plugin and require it ourselves, but I've tested this with the new Vite setup and it looks like just works. Not sure if there's anything to do.

@taylorotwell
Copy link
Member

@jessarcher @timacdonald can you review this and mark as ready for review once you have done so?

@taylorotwell taylorotwell marked this pull request as draft June 30, 2022 13:35
@tonysm
Copy link
Author

tonysm commented Jun 30, 2022

Closing because of this.

@tonysm tonysm closed this Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants