Use --include-path to get django-compressor to handle lesscss @import
COMPRESS_PRECOMPILERS = (
('text/coffeescript', 'coffee --compile --stdio'),
('text/less', '/usr/bin/lessc --include-path="%s" {infile} {outfile}' % os.path.join(PROJECT_BASE, 'static', 'less')),
)
Written by John Weaver
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Related Tags
#django
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#