mirror of
https://gitclone.com/github.com/justjavac/free-programming-books-zh_CN
synced 2026-10-11 23:40:01 +08:00
Update gulpfile.js
This commit is contained in:
+5
-12
@@ -1,15 +1,8 @@
|
||||
var gulp = require('gulp');
|
||||
var uglify = require('gulp-uglify');
|
||||
var rename = require('gulp-rename');
|
||||
var markdown = require('gulp-markdown');
|
||||
|
||||
|
||||
gulp.task('uglify', function() {
|
||||
gulp.src('src.js')
|
||||
.pipe(uglify())
|
||||
.pipe(rename(function (path) {
|
||||
path.extname = ".min.js"
|
||||
}))
|
||||
.pipe(gulp.dest('dist'))
|
||||
gulp.task('default', function () {
|
||||
return gulp.src('README.md')
|
||||
.pipe(markdown())
|
||||
.pipe(gulp.dest('html'));
|
||||
});
|
||||
|
||||
gulp.task('default', ['uglify']);
|
||||
|
||||
Reference in New Issue
Block a user