Last active
January 13, 2016 15:37
-
-
Save michiel/ac855475cc3bce438e47 to your computer and use it in GitHub Desktop.
Serve bower_components outside app root with grunt-contrib-connect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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