I have been looking but cannot find a way to add a folder to the less include path. or "namespace" it.
Basically rather then "bootstrap" being done like so:
elixir(function(mix) {
mix.less('app.less', 'public/css/', {
paths: [
paths['bootstrap'] + 'less/'
]
});
});
It would be like
elixir(function(mix) {
mix.less('app.less', 'public/css/', {
paths: {
'bootstrap': paths['bootstrap'] + 'less/'
}
});
});
So if I wanted to call bootstrap in my app.less it would be:
@import "bootstrap/bootstrap";
The reason for this is including multiple less resources can sometimes cause multiple files to have the same name.
So is there anyway to do this without moving files around manually?
My
gulpfile
:Then include vendors like this:
Hope I helped you.