laravel-mix-email

1.0.0-beta • Public • Published

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
  }
})

Package Sidebar

Install

npm i laravel-mix-email

Weekly Downloads

1

Version

1.0.0-beta

License

MIT

Unpacked Size

4.61 kB

Total Files

4

Last publish

Collaborators

  • husseinalhammad