app.configure('production', function () {
    yui({
        combine: true,
        debug: false,
        filter: "min"
    });

    // serving YUI from CDN directly
    app.use(yui.cdn());
});
app.configure('development', function () {
    yui({
        combine: false,
        debug: true,
        filter: "debug"
    });
    // you can also use a custom version of YUI by
    // specifying a custom path as a second argument,
    // or by installing yui at th app level using npm:
    // yui({
    //     combine: false,
    //     debug: true,
    //     filter: "debug"
    // }, __dirname + '/node_modules/yui/');

    // serving YUI from local server
    app.use(yui.local({
        // overruling any default config provided by yui.cdn()
        // routine by passing a new value. E.g:
        // comboSep: '~'
    }));
});