• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

atom-less

Atom plugin to compile .less files on save.
  • #plugin
  • #less
  • #compile-on-save
schmuli
0.1.10 15,365
7
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

atom-less package

An Atom package that auto-compiles LESS files on save, with support for LESS plugins, Clean-CSS and AutoPrefixer.

Configuration

On the first line of LESS files, add a valid JSON comment, not including the outer brackets ('{' and '}'), with the following properties:

  • "main": string - The relative or absolute path to the main LESS file to be compiled (ignores all other options)
  • "out": boolean|string - true to output using the filename, or a string specifying a name to use
  • "compress": boolean - Use Less.JS built-in compression (not compatible with Clean-CSS or Source Maps)
  • "strictMath": boolean - Require brackets around math expressions
  • "sourceMap": boolean|Object - true to turn on source maps, or an object specifying LESS source map properties
  • "cleancss": string|object - a string specifying the 'compatibility' property, or an object specifying the Clean-CSS properties (not compatible with Source Maps)
  • "autoprefixer": string|object - a ; separated string specifying the 'browsers' property, or an object specifying the AutoPrefixer properties

Other LESS compiler options might work but are untested at this point.

Road Map

  1. Remove dependency on inline comments, and instead use a .lesscfg project file, allowing easier configuration and automatic support of additional LESS plugins
  2. Change callback passing to use Promises

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by