在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):justin713/gulp-premailer开源软件地址(OpenSource Url):https://github.com/justin713/gulp-premailer开源编程语言(OpenSource Language):CSS 58.9%开源软件介绍(OpenSource Introduction):gulp-premailerA gulp module using Premailer to bring CSS styles inline when developing HTML emails. Prerequisitesgulp-premailer uses the Premailer gem to inline styles, and is required for core functionality. You can install via RubyGems package management framework for Ruby:
Or you can add it to your project's Gemfile and run InstallationInstalling via npm:
Usage and Examplegulp-premailer takes in piped streams and outputs the resulting HTML as a stream. This allows you to pipe the result to additional tools or the var gulp = require('gulp');
var premailer = require('gulp-premailer');
gulp.task('build', function () {
gulp.src('*.html')
.pipe(premailer())
.pipe(gulp.dest('builds/'));
}); In the example above, any files matched by the ContributingAs said previously, this is a learning project based on need for other projects and desire to experiment with node. I welcome all insight, discussion and code suggestions. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论