jekyll-foundation
jekyll-foundation copied to clipboard
Lots of odd characters at the end of the js file
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?
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.