Skip to content

loeck/less-autocompile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

less-autocompile package

Auto compile LESS file on save.


Add the parameters on the first line of the LESS file.

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

Example

less/styles.less

// out: ../css/styles.css, sourcemap: true, compress: true

@import "my/components/select.less";

less/my/components/select.less

// main: ../../styles.less

.select {
  height: 100px;
  width: 100px;
}