sless

Smaller LCSS

npm install sless
1 downloads in the last week
4 downloads in the last month

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
npm loves you