dstroot / skeleton

Node Express MongoDB Bootstrap Passport... all rolled up into juicy goodness
skeleton-app.jit.su
MIT License
369 stars 47 forks source link

Less reload #35

Closed Torone closed 9 years ago

Torone commented 9 years ago

Hi,

Thanks for your work with Skeleton.

I was just trying it and I found an issue: every time I do some changes on the less files I should restart Gulp to see the changes on the browser. There is a fastest way to see these changes in real time?

Best

Torone commented 9 years ago

Hi,

Well, I'm back to the code to how to fix it and I found a small issue:

If I add a new .less file and I import it in the main.less file every changes I do in the new one it doesn't trigger gulp watch because it is listening only the files added in the paths model. So to reload it I should fake save the main.less file.

It would be better to listen all the less files gulp.watch('less/**/*.less', ['styles']);. Same for the Javascript files (if someone need to add new ones).

It fixed all my problems, I hope it will help to improve it always better this great project.

Best

dstroot commented 9 years ago

Thanks!