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

Lots of odd characters at the end of the js file #74

Open
AdityaNayak opened this issue Mar 14, 2020 · 1 comment
Open

Lots of odd characters at the end of the js file #74

AdityaNayak opened this issue Mar 14, 2020 · 1 comment

Comments

@AdityaNayak
Copy link

Example: https://www.thevantageproject.com/assets/js/all.js

I see lots of characters that fill 300 lines starting with sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImpxdWVyeS5qcyIsImZvdW5kYXRpb24uY29yZS5qcyIsImZvdW5kYXRpb24udXRpbC5tZWRpYVF1ZXJ5LmpzIiwiZm91bmRhdGlvbi51dGlsLnRyaWdnZXJzLmpzIiwiZm91bmRhdGlvbi5zbW9vdGhTY3JvbGwuanMiLCJmb3VuZGF0aW9uLnN0aWNreS5qcyIsImZvdW5kYXRpb24ubWFnZWxsYW4uanMiLCJhcHAuanMiXSwibmFtZXMiOlsiZ2xvYmFsIiwiZmFjdG

Any idea on what is causing this? And what this is?

@core77
Copy link
Member

core77 commented Mar 14, 2020

Yes. Sourcemaps are for development.

For production simply run: npm run build
And your css/js file should be smaller and doesn’t contain sourcemaps.

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