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

gulp sourcemaps doens't generate external map file #529

Open
lolaswift opened this issue Sep 27, 2017 · 2 comments
Open

gulp sourcemaps doens't generate external map file #529

lolaswift opened this issue Sep 27, 2017 · 2 comments

Comments

@lolaswift
Copy link

lolaswift commented Sep 27, 2017

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

@ghost
Copy link

ghost commented Nov 29, 2017

@lolaswift having the same issue here. who did you manage to get it done? could you post your gulp task, please?

@lolaswift
Copy link
Author

@ionut-tanasa I couldn't get it work. I am using incline map

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

No branches or pull requests

1 participant