less-compile-on-save

Automatically compile LESS files on save

ShtHappens796

523

1

1.4.0

MIT

GitHub

less-compile-on-save

Codacy Badge

Automatically compile LESS files on save.
Waits for the save to complete and then compiles the LESS file with the given options into the specified output.


The following parameters can be set:

out          (string) path of CSS file to create
sourcemap    (bool)   create sourcemap file
compress     (bool)   compress CSS file
main         (string) path to your main LESS file to be compiled
autoprefixer (string) autoprefixer parameterers

Add the parameters on the first line of the LESS file.
Check this for a how-to on autoprefixer parameters.


Example

/less/style.less

// out: ../css/style.css, sourcemap: true, compress: true, autoprefixer: defaults