Less processor for brick.js.
A brick.js module can contain arbitrary files.
Your index.less
can import
mixin/variable files in the current directory,
and in modules directory.
Less PATH is set to
<current module>:<module root>
.
For example:
bricks/
|-- homepage
| |-- index.less
| |-- local-mixins.less
|
|-- styles
|-- mixins.less
File homepage/index.less
:
// relative to current directory
@import 'local-mixins';
// relative to current directory
@import '../styles/mixins'
// relative to Brick Root, see <https://github.com/brick-js/brick.js/wiki/Quickstart#brick-root>
@import 'styles/mixins';