Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

livereload only reloads changes to the html file #109

Open
worldspawn opened this issue Jun 8, 2016 · 1 comment
Open

livereload only reloads changes to the html file #109

worldspawn opened this issue Jun 8, 2016 · 1 comment

Comments

@worldspawn
Copy link

Hi,

I might be misunderstanding what livereload does, but using the below setup I see changes to the html file be reflected, however changes to assets the html is loading are not reloaded. For example if I change a css file, or js file nothing happens. My simple test was to change the background color defined in body (fails) and change some text in the html documents (success). Should I be seeing changes to assets be automatically injected?

gulp.task('serve', ['watch'], function() {
    return gulp.src('./app')
      .pipe(plugins.webserver({
          livereload: {port: 8032, enabled: true},
          open: true,
          middleware: [serveStatic(__dirname + '/../')]
      }));
});
@alvincrespo
Copy link

Yeah I'm also a bit confused on this, I thought that livereload would check for .js files throughout the project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants