chenglou / react-motion

A spring that solves your animation problems.
MIT License
21.69k stars 1.16k forks source link

[CDN Request] Supply minified version to unpkg, or latest releases to cdnjs #474

Open haxxxton opened 7 years ago

haxxxton commented 7 years ago

The currently recommended CDN service appears to be unpkg.com. However, it appears the build folder (for the latest release at least) does not include a minified version of react-motion. It would be great to have this as an available external resource.

Similarly, it appears that cdnjs.com only has version 0.0.3 available. I'm not sure if there was a conscious decision to move away from CDNjs, or if their API stopped scraping for some reason, but this would also be an awesome resource to have at our disposal.

jimaek commented 7 years ago

If you want you can use jsDelivr. It can auto-minify any file by adding min to a file name http://cdn.jsdelivr.net/npm/react-motion@0.5.0/build/react-motion.min.js

haxxxton commented 7 years ago

@jimaek AWESOME! thanks for bringing that to my attention. Im unfamiliar with the way these CDN's operate, is it something that react-motion is having to ping per release? or do they have a subscription to the master branch on their side? if it's the later, what changed from 0.0.3 that meant CDNjs is no longer recognising releases?

jimaek commented 7 years ago

jsDelivr pulls directly from npm. So you dont need to do anything, just push a release to npm and the files will be available on the CDN. There is no config or pings like cdnjs uses.

seanpoulter commented 5 years ago

This issue duplicates #429.