Skip to content

Add support for sourcemaps #4

Description

@nicolasgarnier

Gulp-crisper is great but it would be even more awesome if it had support for sourcemaps generation.

For instance I should be able to do this:

gulp.task('separateJS', function () {
  return gulp.src(['app/**/*.html'])
    .pipe($.sourcemaps.init())
    .pipe($.crisper()) // Extract JS from .html files
    .pipe($.sourcemaps.write('.'))
    .pipe(gulp.dest('dist/'))
});

Some docs for you: https://www.npmjs.com/package/gulp-sourcemaps#plugin-developers-only-how-to-add-source-map-support-to-plugins

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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