Created
August 17, 2015 04:51
-
-
Save sqzr/f68579d53c7431ef4982 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 开发环境下的编译 less | |
gulp.task ('production-less',function (){ | |
return gulp.src (libPaths.styleless ) | |
.pipe (less ()) | |
.pipe (gulp.dest (srcPaths.less )); | |
}); | |
// 开发环境下处理 css (压缩各种) | |
gulp.task ('production-minicss', function () { | |
return gulp.src (libPaths.css ) | |
.pipe (rev ()) | |
.pipe (minifycss ()) | |
.pipe (gulp.dest (srcPaths.dist_css )) | |
.pipe (rev.manifest ({path:'css.json'})) | |
.pipe (gulp.dest (srcPaths.rev )); | |
}); | |
// 开发环境下处理 js (压缩各种) | |
gulp.task ('production-minijs', function () { | |
return gulp.src (libPaths.script ) | |
.pipe (rev ()) | |
.pipe (uglify ()) | |
.pipe (gulp.dest (srcPaths.dist_js )) | |
.pipe (rev.manifest ({path:'js.json'})) | |
.pipe (gulp.dest (srcPaths.rev )); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment