0.1.2 • Published 9 years ago

less-plugin-load-json v0.1.2

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

less-plugin-load-json

Loads variables from JS / JSON files and makes the available to your LESS file.

Example

module.exports = {
  myColor: 'red'
}
@import "values.js";

body {
  color: @myColor;
}

Notes

  • Only string and number types are supported. No nested objects.

Bugs

There are likely plenty, please file some.

Changelog

  • 0.1.2: Protect against invalid JS/JSON files. Add tests.
  • 0.1.1: Remove unused dependency.
  • 0.1.0: Actually return a class, in order to work with webpack.
  • 0.0.1: First version, kinda works.