1.0.0-beta • Published 2 years ago

laravel-mix-email v1.0.0-beta

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

laravel-mix-email

A configurable Laravel Mix plugin for managing common HTML email development tasks. It can be used to:

  • inline CSS
  • remove unused CSS
  • uglify class/id names
  • minify OR format the HTML/CSS

The plugin does the above using the following packages:

  1. Automattic/juice for CSS inlining
  2. codsen/email-comb for HTML optimisation (remove unused CSS, uglify class/id names, minify HTML)
  3. beautify-web/js-beautify for HTML/CSS formatting

Installation

TBD

Usage

mix.email({
  source: 'dist',

  inlineCss: {
    enabled: true,

    // Automattic/juice config
  },

  optimize: {
    enabled: true,

    // codsen/email-comb config
  },

  beautify: {
    enabled: false,

    // beautify-web/js-beautify config
  }
})