Skip to content

Instantly share code, notes, and snippets.

@ehirsch
Created July 6, 2010 08:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehirsch/465172 to your computer and use it in GitHub Desktop.
Save ehirsch/465172 to your computer and use it in GitHub Desktop.
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