Skip to content

Instantly share code, notes, and snippets.

@tdhartwick
Created January 28, 2016 17:33
Show Gist options
  • Save tdhartwick/05c843b93ae36d159ed4 to your computer and use it in GitHub Desktop.
Save tdhartwick/05c843b93ae36d159ed4 to your computer and use it in GitHub Desktop.
var pipe = lazypipe()
.pipe($.inlineCss)
.pipe($.inject, gulp.src(cssMqPath), {
transform: function(path, file) {
return '<style>\n' + file.contents.toString() + '\n</style>';
}
})
.pipe($.htmlmin, {
collapseWhitespace: false,
minifyCSS: true
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment