-
Notifications
You must be signed in to change notification settings - Fork 114
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
CSS inlining doesn't work when including image on Laravel 10 and Laravel 9 #311
Comments
Thanks for reporting the issue @bbprojectnet since you already found a solution do you think you can make a pull request for this? |
@bbprojectnet I've created the PR, and included your suggested changes. When you were working on this, did you get this to work with Laravel 10 by making your suggested change? |
Yes.
Thanks a lot! :) |
Just to reiterate here that I have it working on Laravel 10 without this change. |
What do you mean by working? Yes, there is no error, but in my case inline css was not added. |
As in, this change isn't necessary for the package to do its thing. I had no issues. |
Since time has passed I've learned more about the issues and more often it seems to be a local issue. I've created a small Laravel10MailCssInliner to show the correct wokring of this package in combination with Laravel 10. Using the SendEmail command ( I recommend you take another look into the problems you're facing and see what the differences are compared to the playground. You can always share you problems here and people could volenteer to help you out. |
Of course, there are some differences between the example you provided and my code, for example that my email contains both HTML and plain text. I will try to re-examine the matter and point out any differences. |
Ok, i figured it out, please add something like this to your
result: No inline styles. Now, apply "patch" from first comment, and works again ;) |
Brilliant this seems to take a different turn in code indeed. In the Playground example the I can see the |
This has been fixed in #313 |
Hi,
In Laravel 10 inliner don't work at all.
After a short look at the code, I came up with what to improve to make it work with Laravel 10:
CssInlinerPlugin.php, line 99:
change to:
I haven't tested it on a larger scale (e.g. with Laravel 9), I'm posting it as a suggestion.
The text was updated successfully, but these errors were encountered: