less-rails icon indicating copy to clipboard operation
less-rails copied to clipboard

Uplifting from 2.8 to 3.0 causes issues with precompiling.

Open JakeLaCombe opened this issue 7 years ago • 2 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?

JakeLaCombe avatar Jan 04 '18 21:01 JakeLaCombe

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

calebmeyer avatar Mar 23 '18 23:03 calebmeyer

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.

JakeLaCombe avatar Jul 06 '18 15:07 JakeLaCombe