Skip to content

Instantly share code, notes, and snippets.

@michiel
Last active January 13, 2016 15:37
Show Gist options
  • Save michiel/ac855475cc3bce438e47 to your computer and use it in GitHub Desktop.
Save michiel/ac855475cc3bce438e47 to your computer and use it in GitHub Desktop.
Serve bower_components outside app root with grunt-contrib-connect
connect: {
app: {
options: {
port : 9000,
base : '<%= appRoot %>/',
open : true,
livereload : true,
hostname : '127.0.0.1'
middleware : function(connect) {
return [
connect().use(
'/bower_components',
connect.static('./bower_components')
),
connect.static('./app')
];
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment