3.0.1 • Published 2 years ago

less-plugin-js-vars v3.0.1

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
2 years ago

Less Plugin JS Vars

A less css plugin that let's use js vars all over the place.

Installation

npm install --save-dev less-plugin-js-vars

Usage

lessc file.less --js-vars="vars.js"

In the above, the file vars.js must export an object with key value pairs. Inside your less files all occurences of {{variable}} will be replaced with the value of the 'variable' property on the exported object.

vars.js:

module.exports = {

   fruit: 'mango'

};

file.less:

.__fruit__ {

   color: red;

}

result:

.mango {

  color: red;

}
3.0.1

2 years ago

3.0.0

5 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.2.4

7 years ago

2.2.3

7 years ago

2.2.2

7 years ago

2.1.0

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago