gitana / alpaca

Alpaca provides the easiest way to generate interactive HTML5 forms for web and mobile applications. It uses JSON Schema and simple Handlebars templates to generate great looking, dynamic user interfaces on top of Twitter Bootstrap, jQuery UI, jQuery Mobile and HTML5.
http://www.alpacajs.org
Other
1.29k stars 371 forks source link

npm package too big for jsDelivr #611

Open Avtonom opened 6 years ago

Avtonom commented 6 years ago

I'm trying to load this package from jsDelivr CDN but it fails because the package is over 50 MB. Are there any files that could be removed to reduce the package size?

ambischof commented 6 years ago

If it didn't have all the 3rd party dependencies in /lib, it would do the trick... Looks like that folder is like 90 mb.

In the age of package managers, there's no reason to include 3rd party code in the bundle.

Avtonom commented 6 years ago

@ambischof , CDN service to carry out this check automatically and there is no possibility to affect it. Can you reduce the volume? Can that that is not used already?

ambischof commented 6 years ago

I'm not exactly sure what you're asking.

Btw, is there a reason you can't use the cdn already provided by alpaca?

http://code.cloudcms.com/alpaca/1.5.24/bootstrap/alpaca.min.js
http://code.cloudcms.com/alpaca/1.5.24/bootstrap/alpaca.min.css