[size=2]I’ve got a working Yii2 site, based on the Basic template, installed by composer. [/size]
Now I want to override and extend the styles provided by bootstrap.
Normally I would make my own less-file, and add it to the gruntfile inside vendor/.../bootstrap. Then I can re-use boostrap mix-ins and use grunt to build my css.
But to safely be able to update yii, bootstrap, extensions etc. I want to stay away from the files inside vendor folder. The fact that the default .gitignore file exclude vendor tells me I might be wise to stay true to that.
If I just add a custom css to the assetBundle the custom css will be added before bootstrap, thus not overriding its properties.
So, what is the best practice for structuring custom less/css files?