gulp-community / gulp-coffee

Coffeescript plugin for gulp
MIT License
226 stars 70 forks source link

why does gulp-coffee uglify the compiled *.js file under 'build/' using gulp-coffee #64

Closed xiaoDC closed 9 years ago

xiaoDC commented 9 years ago

coffee: gulp.task 'coffee_build', -> gulp .src 'build/coffee/*.coffee' .pipe coffee bare: true .pipe gulp.dest "build/js/"

native: gulp.task('coffee_build', function() { return gulp.src('build/coffee/*.coffee').pipe(coffee({ bare: true })).pipe(gulp.dest("build/js/")); });

yocontra commented 9 years ago

If your code is actually

gulp.task('coffee_build', function() {
  return gulp.src('build/coffee/*.coffee')
    .pipe(coffee({
      bare: true
    }))
    .pipe(gulp.dest('build/js'));
});

then the files will be output to build/js/whatever.coffee

xiaoDC commented 9 years ago

thank you. I find the reason. It is the requirejs what does uglify the compiled js file !