metaskills / less-rails

:-1: :train: Less.js For Rails

Home Page:http://github.com/metaskills/less-rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uplifting from 2.8 to 3.0 causes issues with precompiling.

JakeLaCombe opened this issue · comments

I recently uplifted an application to use 3.0 instead of 2.8, and found the following differences between the two.

For less-rails 2.8.0, I find that the rake assets:precompile takes all of the less files and generates a single .css file. However, with less-rails 3.0.0, I see that it's generating several individual .less files instead of one cancatenated application.css file.

For the way our app imports assets, we need to generate a single application.css file for our needs. Is there a way to achieve this with less-rails 3.0.0?

Just spent a full day debugging this. Glad to have found this issue.

I changed application.css to application.css.less, and that seemed to compile the file with the correct extension. Should this be the accepted solution for this issue? I didn't find any documentation or migration steps to verify this.