- Installation node.js
- Install less
npm install less -g - 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.
- 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.