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

后端 未结 5 1975
执念已碎
执念已碎 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 13:56

    To use File Watchers to compile LESS in IDEA 12:

    Install File Watchers extension from within IDEA. Go to Settings > IDE Settings > Plugins.

    Next you need a transcoder, which is included in the LESS package for node.js

    Install node.js from http://nodejs.org/

    From the command line, type npm install -g less to install the LESS package.

    Then you can create a watcher under Settings > Project Settings > File Watchers. Choose the LESS template and it will find your transcoder automatically.

提交回复
热议问题