Skip to content

Create map file in realese #2378

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

Closed
goldserg opened this issue Nov 18, 2015 · 7 comments
Closed

Create map file in realese #2378

goldserg opened this issue Nov 18, 2015 · 7 comments

Comments

@goldserg
Copy link

Please, create *.map file in realese for debugging in browser.

@eddiemonge
Copy link
Contributor

You should use the non-minified file for debugging.

@goldserg
Copy link
Author

No, I means when debugging need in production. In this case i cann't change code.

@eddiemonge
Copy link
Contributor

Why are you debugging in production?

@goldserg
Copy link
Author

When developing the software, you are not protected from errors, and sometimes it is impossible to reproduce the error on the test stand because of the difference in data on production.
Why other libs has js, min.js, map files in release, but this lib no?

@nateabele
Copy link
Contributor

I'm not opposed to it, if someone wants to submit a PR.

@eddiemonge
Copy link
Contributor

Why other libs has js, min.js, map files in release, but this lib no?

Because including the source mapping in min.js adds to the file size and the point of minimizing is to minimize the file size so it is served as fast as possible.

You should probably have a staging/dev/test environment that you can duplicate the data to or reproduce in so you can debug safely there. If not, perhaps its time to look into increasing your dev ops so you can have these environments.

Also you can debug in Chrome. Click the {} button in the source viewer to see a bit more readable part.

@nateabele
Copy link
Contributor

Because including the source mapping in min.js adds to the file size and the point of minimizing is to minimize the file size so it is served as fast as possible.

Maps are typically served as separate files.

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

3 participants