I have installed the module, defined my .less file in the .info file, and the css file are generated correctly to the default/files/less directory. Is there a way to tell my theme to look for the generated css files in that directory and use them? Right now the generated css does not affect my site. Or did I do something wrong?

Installed the module.
Added in .info file: stylesheets[all][] = styles.less
Created styles.less and added some less css.
Flushed cache. A css file, less_67fff23936dc3662e1ae1f56b1db3b35.css, was generated to default/files/less, and the content of the file looks great.

Comments

corey.aufang’s picture

While "Optimize CSS" is off, look at the source of the page and see if the less generated css file is present.

JockeL’s picture

"Optimize CSS" is off already, but the css file is not present in the source of the page.

I installed the module on a clean drupal installation and now it works great.

corey.aufang’s picture

Status: Active » Fixed

If you run into this problem again, please post the steps that brought you to this problem again.

For now I'm going to mark this as fixed, but please reopen if you have further information.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

silverfly’s picture

Version: 6.x-1.0 » 7.x-2.4
Category: feature » bug

Running into the same issue... I'll debug a bit and see if I can post a quick fix for future reference.

* Edit: No issue was found with the module itself. I just had to make sure I was including the less stylesheets in the info file: (stylesheets[all][] = less/mylessfile.less)