Created
July 6, 2010 08:39
-
-
Save ehirsch/465172 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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