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;
}

相关文章:

  • 2022-12-23
  • 2021-07-25
  • 2021-12-05
  • 2021-09-10
  • 2022-12-23
  • 2021-08-04
  • 2021-05-28
猜你喜欢
  • 2022-12-23
  • 2022-01-16
  • 2021-04-09
  • 2021-12-13
  • 2021-12-28
  • 2021-11-30
相关资源
相似解决方案