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

Cannot set correct File and Sources when writing source maps #27

Closed
suedama1756 opened this issue Mar 31, 2014 · 4 comments
Closed

Cannot set correct File and Sources when writing source maps #27

suedama1756 opened this issue Mar 31, 2014 · 4 comments

Comments

@suedama1756
Copy link

What I'm trying to do is take in a file and output a minified version next to it with a source map.

Example:

file-debug.js
file-min.js
file-min.js.map

The problem is that no combination of rename that I use produces the correct result. The source maps "Sources" is updated to point at the output file (which is never correct). In my opinion the sources should always point at the input file (renaming further down the pipeline should not change this).

Ideas?

@suedama1756
Copy link
Author

This appears to be a duplicate of issue: #23 which is marked as closed. Has the issue been fixed and released?

I've worked around the issue by piping the output to a stream that delays data from being emitted by batch size, e.g.

.pipe(_uglify({
   outSourceMap: true
}))
.pipe(_window(2))
.pipe(_rename...

@terinjokes
Copy link
Owner

We're resolving this with a different plugin within the gulp ecosystem.

@suedama1756
Copy link
Author

any more details on that?

@terinjokes
Copy link
Owner

Sure, see gulpjs/gulp#356.

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

2 participants