Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
var YUI_config = {
injected: true,
comboBase: '../scripts/combo?',
root: '/yui/',
// if combine is false
base: '../scripts/public/yui/',
// where to add the scripts
insertBefore: "favicon",
groups: {
gallery: {
combine: true,
comboBase: '../scripts/combo?',
root: '/gallery/',
base: '../scripts/public/gallery/',
patterns: {
'gallery-': {
}
},
modules : {
'gallery-aui-skin-base': {
path: 'gallery-aui-skin-base/css/gallery-aui-skin-base-min.css',
type: 'css'
},
'gallery-aui-skin-classic': {
path: 'gallery-aui-skin-classic/css/gallery-aui-skin-classic-min.css',
type: 'css',
requires: ['gallery-aui-skin-base']
}
}
},
yui2: {
combine: true,
comboBase: '../scripts/combo?',
root: '/2in3/2.8.1/build/',
base: '../scripts/public/2in3/2.8.1/build/',
patterns: {
'yui2-': {
configFn: function(me) {
if(/-skin|reset|fonts|grids|base/.test(me.name)) {
me.type = 'css';
me.path = me.path.replace(/\.js/, '.css');
me.path = me.path.replace(/\/yui2-skin/, '/assets/skins/sam/yui2-skin');
}
}
}
}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment