Closed (fixed)
Project:
Less CSS Preprocessor
Version:
7.x-2.4
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2010 at 12:39 UTC
Updated:
8 Feb 2012 at 20:00 UTC
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
Comment #1
corey.aufang commentedWhile "Optimize CSS" is off, look at the source of the page and see if the less generated css file is present.
Comment #2
JockeL commented"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.
Comment #3
corey.aufang commentedIf 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.
Comment #5
silverfly commentedRunning 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)