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

Concat minified files with source map results in line offset #187

Open
fsmeier opened this issue Jul 13, 2018 · 1 comment
Open

Concat minified files with source map results in line offset #187

fsmeier opened this issue Jul 13, 2018 · 1 comment

Comments

@fsmeier
Copy link

fsmeier commented Jul 13, 2018

Hi,
even if i think this repo is not maintained anymore maybe anyone has the same problem and maybe anyone found a solution already:

I am concatenating multiple files, some of them are minified and have links to a sourcemap. Like zxcvbn or jquery.min.js. When I concat them and validate the source-map it have an offset in the lines after the sections with the source-map-comments.

Anybody else has this problem?

@tienslebienz
Copy link

tienslebienz commented Aug 21, 2018

I added this line to fix the issue.
I guess concat assume there were no extra line at the end of the file

options: {
    process: src => src.slice(0, -1),
},

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