brick-less

1.1.10 • Public • Published

brick-less

NPM version Build Status Coverage Status Dependency manager

Less processor for brick.js.

Mixins/Variables

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';

/brick-less/

    Package Sidebar

    Install

    npm i brick-less

    Weekly Downloads

    0

    Version

    1.1.10

    License

    ISC

    Last publish

    Collaborators

    • harttle