Closed
Description
Hi, I tried using this project as an npm dependency, there is a less/ directory with a main.less file. When I try to use it as I would when using for example boostrap to override variables I get an error:
>> NameError: variable @bootstrapDirectory is undefined in node_modules/angular-ui-grid/less/bootstrap/bootstrap.less on line 30, column 23:
>> 29 // Core variables and mixins
>> 30 @import (reference) "@{bootstrapDirectory}/less/variables.less";
>> 31 @import (reference) "@{bootstrapDirectory}/less/mixins.less";
Warning: Error compiling app/css/main.less Used --force, continuing.
My main LESS file looks like this:
@import "../../node_modules/angular-ui-grid/less/main";
@import "_ui-grid-variables";
And my _ui-grid-variables.less file contains a definition of the @bootstrapDirectory variable like this:
@bootstrapDirectory: "../../node_modules/bootstrap";
Still the LESS files in the angular-ui-grid package does not compile, why is that? Could it be a problem with the (reference) parameters I am not to familiar with those.