cyberdelia/django-pipeline — Issue #23: Less compiler has issues compiling with @import statements
Author: rfkrocktk
Created: 2011-10-12 05:47:42+00:00
State: open

A pretty simple test for `django-pipeline` is having it compile and minify the bootstrap library.

Unfortunately, it seems that since the Less compiler moves files to `/tmp` first and then tries to compile them, this breaks things, as if something is in a directory and it refers to a local file.

For example, given `bootstrap.less`:

@import "reset.less";
@import "variables.less";
@import "mixins.less";
@import "scaffolding.less";
@import "type.less";
@import "forms.less";
@import "tables.less";
@import "patterns.less";

compilation will fail, as it's trying to compile things from the copied file in the `/tmp` directory, rather than from where it lives on the filesystem.