Im using yeoman with gulp, after i enable html5Mode on angular, livereload stop working, this is my current gulp connect code:
gulp.task('start:server', ['environment'], function() {
$.connect.server({
root: [yeoman.app, yeoman.temp],
host: ENVIRONMENT + '.localhost',
livereload: true,
fallback: 'index.html',
port: 9001,
middleware:function(connect, opt){
return [
modRewrite(['^[^\\.]*$ /index.html [L]']),
connect.static('.tmp'),
connect().use(
'/bower_components',
connect.static('./bower_components')
),
connect.static(yeoman.app)
];
}
});
});
To enable html5Mode i use the following
$locationProvider.html5Mode({
enabled: true,
requireBase: true
}).hashPrefix('!');
i also have base url tag. I found a lot of information about grunt but no solutions for gulp connect. Hope someone else have any hints.