mirror of
https://github.com/justjavac/free-programming-books-zh_CN.git
synced 2025-01-18 07:52:52 +08:00
Create gulpfile.js
This commit is contained in:
parent
20c859f7f9
commit
bff3d3db42
15
gulpfile.js
Normal file
15
gulpfile.js
Normal file
@ -0,0 +1,15 @@
|
||||
var gulp = require('gulp');
|
||||
var uglify = require('gulp-uglify');
|
||||
var rename = require('gulp-rename');
|
||||
|
||||
|
||||
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', ['uglify']);
|
Loading…
x
Reference in New Issue
Block a user