為了讓Node.js支援LESS,需要安裝less-middleware。
Step1. download node.js
- 官網 http://nodejs.org/
 - windows choose -> Windows Installer (.msi) 64bit or 32 bit
 
Step2. open nodeJs command line
- Click Start (開始 ) -> Node.js Folder -> Node.js Command Prompt
 
Step3. install npm install less    (提供less編譯功能)
- npm install less
 
Step4.  install  less-middleware   (提供自動編譯處理)
npm install less-middleware
參考資料 (Reference):
- https://www.npmjs.org/package/less
 - https://www.npmjs.org/package/less-middleware
 - http://stackoverflow.com/questions/11219637/using-less-with-node-js
 - http://channel9.msdn.com/Series/Visual-Studio-Online-Monaco/Using-LESS-in-nodejs
 - http://www.hongkiat.com/blog/less-auto-compile/
 - http://www.hksilicon.com/kb/articles/480014/LESS-MiddlewareNodejsLESS
 - http://lesscss.org/
 
Node學習參考資料 (Node Reference):
- http://nodejs.org/api/
 - http://nqdeng.github.io/7-days-nodejs/#3.2.4
 
沒有留言:
張貼留言