jekyll-foundation icon indicating copy to clipboard operation
jekyll-foundation copied to clipboard

Lots of odd characters at the end of the js file

Open AdityaNayak opened this issue 5 years ago • 1 comments
trafficstars

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?

AdityaNayak avatar Mar 14 '20 14:03 AdityaNayak

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.

core77 avatar Mar 14 '20 15:03 core77