Install less:
$ npm install -g less
compiler:
$ lessc styles.less
windows安裝法:
http://contest-start.blogspot.tw/2014/06/nodejs-install-less-middleware.html
2014年8月14日 星期四
2014年6月2日 星期一
Node.js Install less & less-middleware
Node.js 現今已有非常方便的windows安裝版,可方便於測試與學習。
為了讓Node.js支援LESS,需要安裝less-middleware。
Step1. download node.js
Step2. open nodeJs command line
參考資料 (Reference):
為了讓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
訂閱:
文章 (Atom)