Webstorm adds less development plug-ins and webstormless plug-ins
Original http://a317222029201405212739.iteye.com/blog/2174140
Self-built http://www.tuicool.com/articles/aeye6rY
Everyone knows what it is. Now the popular compiler is koala nodejs. Koala is simple and easy to use. Just configure it after changing the project. Today I will talk about how to compile it with Nodejs. What I will talk about here is the combination of webstorm.
1. Download nodejs, install it, and configure the environment variables.
Successful installation result
2. Install less
Enter
Npm install less-g
Note the path of the less installation result, which will be useful later.
3. Configure less in webstorm.
Open webstorm -- File -- Settings -- Tools -- File Watchers and click the green + button.
I will explain the above content.
Program: select the directory where node.exe is located
Arguments: select the path of the lessc file under the directory recorded earlier, followed by $ FileName $,
Working directory: Do not change
Output...: refers to the storage path of the compiled css, followed by an insert .. you can find it by yourself. This is to set the path for storing the compiled css file and the name and suffix. I will not talk much about it. You will know how to play it yourself.
Thank you!