I am currently studying gulp.js. as I saw the tutorial and gulp.js documentation, this code:
gulp.src('js/*.js') .pipe(uglify()) .pipe(gulp.dest('minjs'));
creates an enlarged javascript file with the creation of a new directory named 'minjs'. Of course, I installed gulp -uglity with the -dev-save option. there is no error message on the console, so I donβt know what the problem is. I tried gulp with "sudo" but still didn't work.
so I went to the root directory and searched the whole file system, but there is no file called "minjs", so I think it just does not work. Why is this happening? anyone knows this problem, it would be good why this is happening.
all source code:
var gulp = require('gulp'); var uglify = require('gulp-uglify'); gulp.task('default', function() { console.log('mifying scripts...'); gulp.src('js/*.js') .pipe(uglify()) .pipe(gulp.dest('minjs')); });
source share