sless

A very simple serverless tool.


License
MIT
Install
npm install sless@0.1.0

Documentation

Smaller LESS

Write less, do more!

Usage

I was getting more and more tired of writing stuff in LESS, due to having to type curly brackets, and semicolons, and thought of writing a very tiny pre-compiler before going through LESS itself. I wouldn't call this a real compiler, as all it does, is merely adding missing brackets, and semi-colons, but it gets the job done, for the most part

This piece of SLESS:

body
    margin : 0

section
    margin-top : 20px
    article
        padding : 10px

Becomes:

body{margin:0}
section{margin-top:20px}section article{padding:10px}

On the todo-list

  • Better error handling
  • Detect bad indentation
  • Support using spaces as indentation
  • Option to not minify the compiled CSS
  • Fix the bugs that exist due to the code's simplicity