mape / connect-assetmanager

Middleware for Connect (node.js) for handling your static assets.
MIT License
310 stars 48 forks source link

Regular Expressions for files list #3

Closed davidpadbury closed 13 years ago

davidpadbury commented 13 years ago

I've added support for regular expressions in the file lists in addition to the existing wildcard. Files will be inserted in the correct order - for example below it'll drop in util first, then all files beginning with jquery, then app.js.

'example.js': {
    route: /\/static\/example.js/,
    path: './public/js/',
    dataType: 'js',
    files: [
        'util.js',
        /^jquery*/,
        'app.js'
    ]
},