Skip to content

Commit

Permalink
Switch over to using http://yui.ericf.me/ YUI combo server.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericf committed Oct 28, 2011
1 parent a0eeca5 commit 591f8b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -86,7 +86,7 @@ <h2>{{title}}</h2>
</script>

<script src="http://use.typekit.com/wkh7ffm.js"></script>
<script src="/yui?/build/yui/yui-min.js"></script>
<script src="http://yui.ericf.me/?/yui/yui-min.js"></script>
<script src="/js/yui-config.js"></script>
<script>
// Load Typekit.
Expand Down
4 changes: 2 additions & 2 deletions public/js/yui-config.js
Expand Up @@ -4,8 +4,8 @@ var filter = (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'm

// YUI Config.
YUI_config = {
comboBase : '/yui?',
root : '/build/',
comboBase : 'http://yui.ericf.me/?',
root : '/',
filter : filter,
combine : filter === 'min',
allowRollup: false,
Expand Down
7 changes: 1 addition & 6 deletions server.js
Expand Up @@ -3,17 +3,12 @@ var express = require('express'),

app = express.createServer(),
port = process.env.PORT || 3000,
pubDir = __dirname + '/public',
yuiDir = __dirname + '/../yui/yui3';
pubDir = __dirname + '/public';

app.configure(function () {
app.use(express.static(pubDir));
});

app.get('/yui', combo.combine({rootPath: yuiDir}), function (req, res) {
res.send(res.body, 200);
});

app.get('/js', combo.combine({rootPath: pubDir + '/js'}), function (req, res) {
res.send(res.body, 200);
});
Expand Down

0 comments on commit 591f8b9

Please sign in to comment.