Foundation-for-Jekyll-sites / jekyll-foundation

Start your Jekyll (v3) project with Zurb Foundation for Sites (v6, sass).
MIT License
179 stars 64 forks source link

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

Open AdityaNayak opened 4 years ago

AdityaNayak commented 4 years ago

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 commented 4 years ago

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.