Selection-js icon indicating copy to clipboard operation
Selection-js copied to clipboard

Need help with minification

Open TauseefMalik opened this issue 6 years ago • 1 comments

I get token errors on using a minifier. Can anybody please help?

TauseefMalik avatar Oct 26 '18 18:10 TauseefMalik

@TauseefMalik yes! It's because the selection.js script uses es6, which isn't compatible with a lot of minification tools (which use the standard es2015, or es5). You should be able to find it soon with

<script src="https://unpkg.com/selection-js"></script>

To automatically get a minified version in your projects.

tpscrpt avatar Nov 29 '18 18:11 tpscrpt