2.0.3 • Published 9 years ago
gulp-lithe v2.0.3
gulp plugin for lithe
更新:
- 过滤
publicdeps中定义的公共部分,抽取公共依赖,优化打包后文件 - 新增
lithe打包压缩的优化工具precss.js/prejs.js,可在压缩时分析本地的一份m5d对照表,只对有变化的文件进行处理,大幅提高合并压缩效率 - 对
css的压缩做了同样的md5处理 test目录下的gulpfile_example_inside.js是一个使用了precss.js/prejs.js的示例gulp配置文件
lithe: A browser-side script loader
// example
var gulp = require('gulp');
var gulpLithe = require('gulp-lithe');
var litheConfig = require('./config.js'); // lithe config
gulp.task('test', function() {
return gulp
.src(['./src/app.js','./src/app2.js']) // entry file
.pipe(gulpLithe({
config:litheConfig // lithe config
}))
.pipe(gulp.dest('./dist/'))
});
gulp.task('default',['test']);