I am using grunt tool for magento server-side less preprocessing.
I have created _extend.less file following directory structure for my custom less compilation
app\design\frontend\Vendorname\themename\web\css\source\ _extend.less
After all necessary configurations of grunt I managed to compile my own less files with the grunt command
grunt less:themename
Now everything works perfectly except when I am trying to add new .less file into _extend.less through @import directive grunt doesn't publish it's symlinks to
pub\static\frontend\Vendorname\themename\en_US\css
For example after I import _custom_button.less in _extend.less with
@import '_custom_button.less';
Now everytime I add new files with @import I have to run the commands.
grunt clean:themename
grunt exec:themename
So this workflow is conflicting when working with developers as it cleans everything in pub\static\frontend\Magento\themename\en_US directory.So that is the problem.I don't want to run clean command again.
Can I do anything for that?