Skip to content
This repository was archived by the owner on Jul 8, 2020. It is now read-only.

gulp sourcemaps doens't generate external map file #529

@lolaswift

Description

@lolaswift

I love generator-m-ionic so much! Thank you guys for this amazing workflow tooling.
I have been trying to generate sourcemaps for Sentry like this:
if (options.minify) {
stream
.pipe(jsFilter)
.pipe($.ngAnnotate({
add: true,
sourcemap: true
}))
.pipe(stripDebug())
.pipe(sourcemaps.init())
.pipe($.uglify())
.pipe(sourcemaps.write('./map'))
.pipe(jsFilter.restore)
.pipe(cssFilter)
.pipe($.csso())
.pipe(cssFilter.restore);
}

However, I can't find anywhere the generated map file although the url gets appended to the app.js.
If I do it incline, then it works:
.pipe(sourcemaps.write())

Can you please give me some hint how can I achieve my goal? many thanks
-lola

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions