Django + Mac osx how to use less css?

这一生的挚爱 提交于 2019-12-06 11:35:59
  1. Install node.js and npm (I used homebrew to install node.js and the instructions at http://npmjs.org/ to install npm)
  2. Install the command-line less compiler with npm install --global less
  3. Add lessc to COMPASS_PRECOMPILERS (directions).

Here's the relevant snippet:

COMPRESS_PRECOMPILERS = (
    ('text/less', 'lessc {infile} {outfile}'),
)

Also, COMPRESS_PRECOMPILERS is from django_compressor, a django app, not from django itself. I think django_compressor looks quite good, but there are other options available as well.

Have you tried the less.app for OS X?

http://incident57.com/less/

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!