【发布时间】:2021-04-10 09:07:12
【问题描述】:
我正在使用 git Repo 的克隆:https://github.com/jpagano/mjml-starter-base
如何添加在此处找到的配置选项https://www.gitmemory.com/issue/mjmlio/mjml/1528/467101657
config.juicePreserveTags='{"imgTag": { "start": "<img", "end": "/>" }, "brTag": { "start": "<br", "end": "/>" }}'
我试过了:
export function buildMjml() {
const options = {
beautify: true,
minify: false,
keepComments: false,
juicePreserveTags: '{"imgTag": { "start": "<img", "end": "/>" }, "brTag": { "start": "<br", "end": "/>" }}',
};
return gulp.src(PATHS.mjml.src).pipe(mjmlGulp(mjml, options)).pipe(gulp.dest(PATHS.dist));
}
但这不会将结束标签添加到图像和 br 标签中
【问题讨论】:
标签: gulp html-email mjml