Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

fortes/less-plugin-load-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Load LESS variables from JSON files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages