gulp-inline-css
Takes HTML style tags and converts it to inline CSS using MailChimp's CSS Inliner API for Gulp 3
Usage
First, install gulp-mc-inline-css
as a development dependency:
npm install --save-dev gulp-mc-inline-css
Then, add it to your gulpfile.js
:
var inline = ; gulp
API
inliner(APIKEY)
APIKEY
Type: String
A required string containing your MailChimp API Key. A best practice is to create a config.json file with an APIKEY and call inliner like so:
var config = ;gulp ;
Results
Converts the below HTML to the following
Hello World
to
Hello World