Open IdanCo opened 7 years ago
i traced the issue to this line
changing from this -
gulp.watch(conf.path.tmp('index.html'), reloadBrowserSync);
to this -
gulp.watch(conf.path.src('app/**/*.html'), reloadBrowserSync);
solves the issue, but since it's a whole conditional segment I feel I'm missing something... am i wrong? worth a PR?
Breakthrough!
I found out the if i change the export part of the component from this
templateUrl: 'full/path/to/component.html
to this
template: require('./component.html')
Then Browsersync listens to changes. Any idea why?
I've created a new project and add a new component using the generator -
yo fountain-angular1:component --name myComponent --dir components/game
I've added references to the new component and successfully used it in the code:
changing the js file of the new componenet triggers a browsersync reload. BUT - changing the html file of the new component doesn't trigger a reload.
Any idea why?
Relevant Links
nothing special about it but i've uploaded the repo - https://github.com/IdanCo/test-browsersync
Environment