inlight-media / www-foundation

0 stars 0 forks source link

Does the CSS livereload with injection, not page refresh? #15

Open willmcclellan opened 9 years ago

willmcclellan commented 9 years ago

See: https://github.com/inlight-media/www-foundation/blob/sina/run-tasks-as-release/www/tasks/serve.js#L20

One thing we found with other gulp files is that if you do a watch on the whole directory then CSS changes cause a full page refresh instead of injecting the changes (no page refresh). It would be worth making sure watching the whole dist dir does this as well (it might do). To overcome this in other projects we added the livereload statement at the end of the pipe for individual tasks, like so https://github.com/inlight-media/spotless/blob/master/www/gulpfile.js#L54