grunt-express
grunt-express copied to clipboard
Mount point for directories in 'bases' option
In express we can 'mount' a directory on a base URL giving two arguments to the app.use function, for example:
app.use('/lib',express.static('/path/to/lib'));
bases could be an object as well or the array components of bases could be an array with two elements.
// object
bases: {
'/lib': '/path/to/lib'
}
// array
bases: [
['/lib','/path/to/lib']
]