forked from st8998/commitwall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassets.js
26 lines (23 loc) · 792 Bytes
/
assets.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
var assetManager = require('connect-assetmanager');
var less = require('less');
console.log('ASSETS');
exports.assetsMiddleware = assetManager({
'lib': {
'route': /\/assets\/[0-9]+\/lib\.js/,
'path': __dirname + '/public/javascripts/lib/',
'dataType': 'javascript',
'files': ['jquery.min.js', 'jade.min.js', 'faye.min.js', 'underscore.min.js', 'underscore.string.js', 'underscore.date.js', 'jquery.timeago.js', 'md5.js', 'jquery.gravatar.js']
},
'client': {
'route': /\/assets\/[0-9]+\/client\.js/,
'path': __dirname + '/public/javascripts/',
'dataType': 'javascript',
'files': ['messages.js']
},
'css': {
'route': /\/assets\/[0-9]+\/css\.css/,
'path': __dirname + '/public/stylesheets/',
'dataType': 'css',
'files': ['*']
}
});