gulp-dot-commonjs-compile:Gulp插件,用于预编译DoT模板

时间:2021-05-24 21:53:47
【文件属性】:
文件名称:gulp-dot-commonjs-compile:Gulp插件,用于预编译DoT模板
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-24 21:53:47
JavaScript gulp-dot-commonjs-compile Gulp插件,用于预编译DoT模板。 例子 如果我们具有以下文件夹结构: src / list.html: < script type = "text/template" id = "mainTpl" > ... < / script > < script type = "text/template" id = "detailTpl" > ... < / script > 然后,运行以下代码: gulp . task ( 'templates' , function ( ) { gulp . src ( 'src/*.html' ) . pipe ( dotCompile ( ) ) . pipe ( rename ( function ( path ) { pat
【文件预览】:
gulp-dot-commonjs-compile-master
----package.json(739B)
----index.js(1KB)
----README.md(670B)
----tpl.js(1KB)

网友评论