-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
36 lines (27 loc) · 739 Bytes
/
gulpfile.js
File metadata and controls
36 lines (27 loc) · 739 Bytes
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
/*
* Dependencias
*/
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var useref = require('gulp-useref');
var gulpif = require('gulp-if');
/*
* Configuración de la tarea 'demo'
*/
var destFolder = 'static'
gulp.task('minifiedjs', function () {
return gulp.src('templates/partials/js.html')
.pipe(useref({ searchPath: './' }))
.pipe(gulpif('*.js', uglify()))
.pipe(gulp.dest('static'));
});
gulp.task('build', ['minifiedjs']);
gulp.task('default', function (){});
/*
* Configuración de la tarea 'watch'
*/
gulp.task('watch', function () {
gulp.watch('static/bower_components/**/*.min.js', []);
gulp.watch('./sass/**/*.scss', ['sass']);
});