Skip to content

Use with gulp-sourcemaps? #11

@evillemez

Description

@evillemez

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));
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions