Configuring phpstorm support less automatically compile css

  1. Installation node.js
  2. Install less
    npm install less -g
  3. Css compression plug mounted less-plugin-clean-css (This step is non-mandatory)
    NPM-plugin the install less -g-Clean-css

wind10 please note: -4048 error, an administrator can execute re-open a command line: Installation processes such as errno appear.
Note of the route red image above indicated, following use.

  1. Configuration PhpStorm (Version: 2019.2)
    4-1 Open file watchers:. File-> Settings-> Tools-> File Watchers, File Watchers window click a '+' LESS selected, Less open window,
    according to the configuration shown, only two red box of options to change other default.

4-2. Now phpstorm in less editing file, it will automatically generate the corresponding css files.

Guess you like

Origin www.cnblogs.com/captainmoore/p/11639812.html