language-javascript icon indicating copy to clipboard operation
language-javascript copied to clipboard

Leaflet 1.5.1 does not minify

Open mdimjasevic opened this issue 5 years ago • 2 comments

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 avatar May 19 '19 15:05 mdimjasevic

@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 :)

erikd avatar May 19 '19 21:05 erikd

hjsmin is now just a very thin wrapper to functionality in https://github.com/erikd/language-javascript .

Moving this issue to that repo.

erikd avatar Jan 11 '23 02:01 erikd