1 Star 0 Fork 38

Irving/h5player

forked from Gerald/h5player 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
gulpfile.js 876 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!node
var gulp = require('gulp');
var concat = require('gulp-concat');
var merge = require('gulp-merge');
var uglify = require('gulp-uglify');
var less = require('gulp-less');
var minifyCss = require('gulp-minify-css');
var css2js = require('gulp-css2js');
var rename = require('gulp-rename');
var wrap = require('gulp-wrap');
gulp.task('build', function() {
return merge(
gulp.src('src/*.less')
.pipe(less())
.pipe(minifyCss())
.pipe(rename({suffix:'.min'}))
.pipe(gulp.dest('dist/'))
.pipe(css2js()),
gulp.src('src/*.js')
.pipe(concat('player.js'))
.pipe(wrap('(function(){\n<%=contents%>\n}).call({});'))
.pipe(uglify())
.pipe(rename({suffix:'.min'}))
.pipe(gulp.dest('dist/'))
).pipe(concat('player-with-css.js'))
.pipe(uglify())
.pipe(rename({suffix:'.min'}))
.pipe(gulp.dest('dist/'))
;
});
gulp.task('default', ['build']);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/irving/h5player.git
git@gitee.com:irving/h5player.git
irving
h5player
h5player
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385