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

mj-include for css does not work #386

Closed
jaredculp opened this issue Mar 14, 2024 · 2 comments
Closed

mj-include for css does not work #386

jaredculp opened this issue Mar 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jaredculp
Copy link

I have tried both of the following:

# in style.css
.container { background-color: #fffaee; padding: 48px 0px; }

# in template.mjml
<mjml>
  <mj-head>
    <mj-include path="style.css" type="css" />
  </mj-head>
  <mj-body>
  ...
  </mj-body>
</mjml>
# in style.mjml
<mj-style>
.container { background-color: #fffaee; padding: 48px 0px; }
</mj-style>

# in template.mjml
<mjml>
  <mj-head>
    <mj-include path="style.mjml" />
  </mj-head>
  <mj-body>
  ...
  </mj-body>
</mjml>

Neither of which ends up in the output HTML. I see this isn't expected to work with inline but wanted to know if this should work.

@jdrouet jdrouet added the bug Something isn't working label Mar 14, 2024
@jdrouet
Copy link
Owner

jdrouet commented Mar 15, 2024

Fixed in latest release 😉

@jaredculp
Copy link
Author

Thanks for the quick turnaround @jdrouet !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants