laravel-mix-email
v1.0.0-beta
Published
Laravel Mix plugin for managing common HTML email development tasks
Downloads
4
Maintainers
Readme
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:
- Automattic/juice for CSS inlining
- codsen/email-comb for HTML optimisation (remove unused CSS, uglify class/id names, minify HTML)
- 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
}
})