Say we have this (simplified) elixir in gulpfile.js:
mix
.bower()
.less('test.less');
The problem is then whenever any file is changed, both bower
and less
tasks are executed.
Is there a way to only execute less when a file in a certain watch path has changed and only execute bower when for example the bower.json file has changed?
The real problem is that with other tasks, my watch process is becoming extremely slow and bower is running everytime I update a less file (which is irrelevant).
Thanks!
bower
andimagemin
everytime you change yourless
files. That's why I wanted to separate them – Subsidence