language-javascript
language-javascript copied to clipboard
Leaflet 1.5.1 does not minify
I've been trying to minify Leaflet 1.5.1 with hjsmin
's Text.Jasmine.minifym
function, but I get a Left value reading:
"HookToken {tokenSpan = TokenPn 87840 2829 23, tokenComment = [WhiteSpace (TokenPn 87839 2829 22) \" \"]}"
I got Leaflet 1.5.1 by downloading a zip file from http://cdn.leafletjs.com/leaflet/v1.5.1/leaflet.zip. Then I ran minifym
on a ByteString obtained with Data.ByteString.Lazy.readFile
from the bytestring
package with a path to leaflet-src.js
.
Any clue what's happening here?
@mdimjasevic Would it be possible for you to reduce leaflet to the minimal example that still triggers this problem? If you provide a minimal example I will fix this :)
hjsmin is now just a very thin wrapper to functionality in https://github.com/erikd/language-javascript .
Moving this issue to that repo.