在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):mjmlio/gulp-mjml开源软件地址(OpenSource Url):https://github.com/mjmlio/gulp-mjml开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):Gulp MJMLAdd MJML to your gulp workflow! Usage:
const gulp = require('gulp')
const mjml = require('gulp-mjml')
gulp.task('default', function () {
return gulp.src('./test.mjml')
.pipe(mjml())
.pipe(gulp.dest('./html'))
})
const gulp = require('gulp')
const mjml = require('gulp-mjml')
// Require your own components if needed, and your mjmlEngine (possibly with options)
// require('./components')
const mjmlEngine = require('mjml')
gulp.task('default', function () {
return gulp.src('./test.mjml')
.pipe(mjml(mjmlEngine, {minify: true}))
.pipe(gulp.dest('./html'))
})
const gulp = require('gulp')
const mjml = require('gulp-mjml')
const mjmlEngine = require('mjml')
function handleError (err) {
console.log(err.toString());
this.emit('end');
}
gulp.task('default', function () {
return gulp.src('./test.mjml')
.pipe(mjml(mjmlEngine, {validationLevel: 'strict'}))
.on('error', handleError)
.pipe(gulp.dest('./html'))
})
const gulp = require('gulp')
const mjml = require('gulp-mjml')
const mjmlEngine = require('mjml')
gulp.task('default', function () {
return gulp.src('./test.mjml')
.pipe(mjml(mjmlEngine, {minify: true, fileExt: ".txt"}))
.pipe(gulp.dest('./html'))
}) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论