Use locally deployed Alloy-UI

59 views
Skip to first unread message

jeremyth...@gmail.com

unread,
Nov 27, 2015, 7:23:21 AM11/27/15
to AlloyUI

I've started using Alloy UI by using CDNs at http://cdn.alloyui.com/3.0.0/aui/aui-min.js.


Is it possible to use Alloy UI locally without having to connect with the CDNs? So install something locally which serves the required files. We'd like to do this so we don't have any external dependencies, for instance if our external internet connection is disabled we'd still like to use our internal apps which may rely on this.

Maíra Araujo

unread,
Nov 27, 2015, 11:37:54 AM11/27/15
to AlloyUI
Yes, there is a way to do this, we do it on AlloyUI demos for example. You basically need to have all built files from alloy on your server. The seed file will be among those too, so you just need to include it instead of the cdn seed and all will work with your local built files.

You can get the built files by downloading the zip file for the release you want to use. The latest release is 3.0.1, so you can download the alloy-3.0.1.zip file listed on the bottom of the release page: https://github.com/liferay/alloy-ui/releases/tag/3.0.1. The built files are inside the build folder, and the seed file is located at build/aui/aui-min.js.

See the tooltip demo as a working example of this configuration: https://github.com/liferay/alloy-ui/blob/master/demos/tooltip/index.html.

jeremyth...@gmail.com

unread,
Dec 2, 2015, 9:45:35 AM12/2/15
to AlloyUI
That's great thanks!  Do you know if the src folder of files is required to run AlloyUI or do we just need to include the build folder?

Maíra Araujo

unread,
Dec 2, 2015, 9:54:20 AM12/2/15
to AlloyUI
Only the build folder is needed :)
Reply all
Reply to author
Forward
0 new messages