This is a tip for easily detect changes in all ‘.scss’ files with gulp. Some people are confused about it, but, it’s a logical question, pretty easy, and i will show how to do it step by step.
Write some gulp tasks:
You must to have one main .scss file and how many partial files you want. Partial files are .scss files named with an underscore prefix, with smaller css parts that will be ignorated and will not generate a new css file but will be imported in the main .scss file.
So, don’t put the underscore prefix in the partial files until you end your job. Yep, that’s right. Gulp will not ignore the files without the underscore prefix, cause for now they are treated as normal style files, and then Gulp will watch every file.
Hope this helps.
See you next time!