gulp-watch with gulp and PostCSS
In a project on which I'm working on I decided to try PostCSS after reading a lot about it. Making a quick research on Google you can easily understand why PostCSS became a famous project, some of available plugins are really useful for frontend development (if you are curious you can check some of them here).
After picking some plugins I found useful I needed to have an auto-invocation of "gulp css" (the task which executes all PostCSS's processors) but I couldn't find much information about it. So, after playing around a little I got it working using gulp-watch.
Basically gulp-watch allows you to "watch" some files and to invoke a gulp task when they change.
The resulting code is this:
https://gist.github.com/simo2409/73b491127ba79266d729
In conclusion gulp and PostCSS togheter are really powerfull, you should try them if you haven't already done.







