platform.js icon indicating copy to clipboard operation
platform.js copied to clipboard

run minifier in prepublish script

Open gswalden opened this issue 7 years ago • 1 comments

It would be great if jsdelivr.com could serve a minified version of this library (cdnjs.com currently does, using a minifier script in-house). I added minification to the prepublish script, which should not cause any unnecessary change to existing workflows, and results in NPM delivering both versions of the library. I also added the new files to .gitignore, hopefully making this change as unobtrusive as possible. Thanks for considering!

Would close https://github.com/bestiejs/platform.js/issues/115.

gswalden avatar Dec 22 '16 00:12 gswalden

The new backend is live. It pulls files directly from npm and github https://github.com/jsdelivr/jsdelivr#usage

Example https://cdn.jsdelivr.net/npm/[email protected] Example directory listing https://cdn.jsdelivr.net/npm/[email protected]/

We also do auto-minification.

jimaek avatar May 08 '17 10:05 jimaek