Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for sourcemaps #4

Open
nicolasgarnier opened this issue Aug 24, 2015 · 3 comments
Open

Add support for sourcemaps #4

nicolasgarnier opened this issue Aug 24, 2015 · 3 comments

Comments

@nicolasgarnier
Copy link

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

@ebidel
Copy link

ebidel commented Aug 24, 2015

/sub

@nicolasgarnier
Copy link
Author

FYI I filed PolymerLabs/crisper#14 asking to add sourcemaps generation support in the Crisper binary. Seems like you need it first.

@ragingwind
Copy link
Owner

Yes, I need supporting of vulcanize bin and then I can pass a source map file stream out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants