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