Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.11 KB

README.md

File metadata and controls

34 lines (26 loc) · 1.11 KB

abe-emailMinify

In case your abe application is used to create email, it can minifies the published html and/or css, respecting email standards.

It uses html-crush and email-comb. For minifyHtmlOptions and minifyCssOptions possiblities, see each package's documentation.

Hook Possibilities

  • afterPublish
    • It reads and writes an html file (with a possible suffix)
  • pageSaveCompile (current branch)
    • It intercepts and minifies the html content before it's written to a file

Install

abe install Retiixx/abe-emailMinify#pageSaveCompile
# Better to precise the branch even though it's the default one

Config

"abe-emailMinify": {
  "active" : false, //boolean
  "minifyHtml": false, //boolean
  "minifyHtmlOptions": undefined, //object 
  "minifyCss": false, //boolean
  "minifyCssOptions": undefined, //object
}

How it works

Everytime you publish a content, abe-emailMinify will intercepts the html content and minifies it before it's written to the file