Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Smaller LESS
CoffeeScript Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
index.coffee
package.json
slessc

README.md

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
Something went wrong with that request. Please try again.