jingo-minify icon indicating copy to clipboard operation
jingo-minify copied to clipboard

Support less via less.js during development

Open fwenzel opened this issue 13 years ago • 3 comments

If I add some less files to a bundle and set TEMPLATE_DEBUG=True, jingo-minify should add a script tag for less.js as well, so that the less files are interpreted on the fly. This keeps me from having to install node.js and lessc and all that jazz unless I want to.

fwenzel avatar Mar 15 '12 03:03 fwenzel

This means we'd have to add less.js as a static file and, thus, staticfiles and all that, which is a pretty big conceptual change. Maybe a good one, but not easy. Or a setting like LESSJS_PATH and force downstream projects to include it.

jsocol avatar Mar 18 '12 20:03 jsocol

Hm, I'd be fine with having to define it in a setting. At least this way I wouldn't have to manually add it to my templates wrapped in an if clause so it doesn't show up in production :)

fwenzel avatar Mar 19 '12 15:03 fwenzel

We do it on zamboni, however it would be nice to make it just work right out of the box. I think it'd be fine to make projects specify the LESS location, since we already make them point to where they installed lessc.

gkoberger avatar Apr 14 '12 19:04 gkoberger