-
First install the Webstorm editor,
Then go to Node's home page to download the corresponding version of Nodejs and then install: http://nodejs.org/Choose the right version to download according to your system.
Open a command prompt (WIN+R) After installation is complete, enter node-v and Npm-v separately if the version number indicates that you have successfully installed
-
Next you can install less, run the command "NPM install less-g" under "Command Prompt", and NPM will automatically start downloading and installing less.
-
Configure Webstorm (version 10), click "File" > "Settings ..." Popup Settings screen, in the left navigation find "tool" > "File Watchers" click the "+" sign button to find less file options click Add.
- 4
Configure less: Double-click the less popup settings page, for example, to set the working directory for less.
For example (--no-color-x $FileName $--include-path=d:\project\mobile\assets\css) Other parameters refer to http://less.bootcss.com/
-
Phpstorm Configuration Less