Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Less file isn't recompile when @import are not in the same folder than less.sources #2

Open
Calvein opened this Issue · 1 comment

2 participants

@Calvein

I have a less file in ./web/css/bootstrap.less and the CSS in the same folder : ./web/css/bootstrap.css

The problem is that my bootstrap.less file @import files that are not in the same directories as it, but the targetNeedsRecompile method only check less files that are in the same directory of the files specifies in the less.sources option but it should check the @import too.

@darklow
Owner

Unfortunately there is no way how ff-silex-less-provider could know all @imports, unless it looks at the content of .less files, but since they can be chained it is not so easy task and i don't think provider should do it at all. Lessphp library also doesn't provide such a feature to list all the imports.

That leaves us only one option. Change the config so that you can specify additional files or directories where to look for changed files. I need to think on config format a bit.

Is you are on a UNIX server, as a temporary fix you can create alias.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.