-
Notifications
You must be signed in to change notification settings - Fork 10
/
gulpfile.js
36 lines (26 loc) · 819 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
var gulp = require('gulp');
var del = require('del');
var uglify = require("gulp-uglify");
var rename = require("gulp-rename");
var concat = require("gulp-concat");
var cssnano = require("gulp-cssnano");
// Dev
gulp.task("clean", function() {
del("app/app/lib/*");
});
gulp.task('lib-js', function() {
return gulp.src([
])
.pipe(concat("lib.full.min.js"))
.pipe(uglify())
.pipe(gulp.dest("app/lib"));
});
gulp.task('lib-css', function() {
return gulp.src([
])
.pipe(concat("lib.full.min.css"))
.pipe(cssnano())
.pipe(gulp.dest("app/lib"));
});
// Main tasks
gulp.task('default', [ "clean", "lib-js", "lib-css" ]);