gulp-html-builder
combo and merge css
and js
to html. no matter the file is online or not.
对页面中引入的css文件和js文件进行合并并压缩到新文件
Features
- 根据 builder 注释进行合并压缩
- 自由控制新文件路径和html中引入新文件路径
Usage
var gulp = ;var htmlBuilder = ; gulp ; });
Html
<!-- builder: app.min{{ .$hash }}.css --> <!-- builder end -->
<!-- builder: main{{ _$hash }}.js --> <!-- builder end -->
output
Options
gulp; //gulp.task('default', ['build.html']);
License
ISC