Intellij IDEA 11: how can I compile .css from .less?

后端 未结 5 1976
执念已碎
执念已碎 2021-02-13 13:29

how can I compile .css from .less in intellij ? sure this should be dead easy, but its got me stumped. anyone know how to do this?

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-13 14:06

    You can set a File Watcher with the following parameters:

    Name: LESS

    Description: Compiles .less files into .css files

    File Type: LESS files

    Scope: Project Files

    Program: C:\Users\Owner\AppData\Roaming\npm\lessc.cmd

    Arguments: --no-color $FileDir$\$FileName$

    Working Directory: your working directory

    Output Paths to Refresh: $FileDir$\$FileNameWithoutExtension$.css

提交回复
热议问题