Skip to content

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

Notifications You must be signed in to change notification settings

Retiixx/abe-emailMinify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published