gulp-concat-sourcemap icon indicating copy to clipboard operation
gulp-concat-sourcemap copied to clipboard

Use with gulp-sourcemaps?

Open evillemez opened this issue 11 years ago • 1 comments

I just want to clarify that this is in fact the plugin the community should be using in conjunction with gulp-sourcemaps. From scanning the code, this seems to be the case - but I'm not entirely sure. The state of sourcemaps is a little hard to follow at the moment.

Is this generally what I should be doing?

var gulp = require('gulp')
  , coffee = require('gulp-coffee')
  , concat = require('gulp-concat-sourcemap')
  , gutil = require('gulp-util')
;

gulp.task('build', function() {
  gulp.src('**/*.coffee')
      .pipe(sourcemaps.init())
        .pipe(coffee({bare: true})).on('error', gutil.log)
        .pipe(concat('bundle.js', {sourcesContent: true})).on('error', gutil.log)
      .pipe(sourcemaps.write())
      .pipe(gulp.dest(target));
});

evillemez avatar May 29 '14 19:05 evillemez

any clue on this? I'm not sure how to make sourcemaps work properly with coffeescript!

ghost avatar Jun 14 '14 02:06 ghost