Skip to content

Static versioning and styles minification break email fonts styles #8241

@Igloczek

Description

@Igloczek

Preconditions

Enabled static versioning and styles minification in production mode.

Steps to reproduce

  1. Make an order or any other action that will send an email.
  2. Run static-content:deploy or make and application deployment
  3. Open previous email.

Expected result

  1. Your email should have proper styles including fonts (check console).

Actual result

  1. email-fonts.min.css generated by static-content:deploy isn't loaded, b/c email template is requesting for email-fonts.css. It's hardcoded in /web/css/source/_email-extend.less of Blank and Luma themes.
  2. Even if email-fonts.css will exist, running static-content:deploy or making an whole application deployment, will make path to this file unaccessible due to static version change.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions