React-color: UMD support

Created on 23 Dec 2016  路  6Comments  路  Source: casesandberg/react-color

Can there be UMD support, so there is a /dist directory with a prebuilt version? This allows the package to be hosted on cdns, such as https://unpkg.com/. There's something similar done for react-tabs. Thanks!

help wanted

Most helpful comment

There will now be a UMD bundled version distributed in 3.0.0, you can start using it now with [email protected] 馃帀

Here is the unpkg link: https://unpkg.com/[email protected]/dist/react-color.min.js

Example is here: https://github.com/casesandberg/react-color/blob/3.0.0/examples/with-umd/index.html

All 6 comments

I don't really like having built files in repos, but I can definitely add it if you think it would be useful!

馃憤 I think it will be a good addition.

There will now be a UMD bundled version distributed in 3.0.0, you can start using it now with [email protected] 馃帀

Here is the unpkg link: https://unpkg.com/[email protected]/dist/react-color.min.js

Example is here: https://github.com/casesandberg/react-color/blob/3.0.0/examples/with-umd/index.html

@casesandberg could it be separated for each picker, eg react-color-sketch.js?

@ekoeryanto Definitely. I went ahead and opened up a new issue here and added it to the 3.0.0 milestone. https://github.com/casesandberg/react-color/issues/504

@casesandberg Can UMD bundles also be made for version 2?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

louh picture louh  路  4Comments

scottbarrow picture scottbarrow  路  6Comments

maximzah picture maximzah  路  5Comments

rpearce picture rpearce  路  4Comments

redguardtoo picture redguardtoo  路  4Comments