0

I have been trying to import a normal css file in a less file as described in the less-rails' documentation using asset helpers, e.g.:

@import asset-url('some/path/to/something.css')

without any luck. The output does not change asset-url(...) to url(/assets/...). And using Sprockets' require directive does not result in the correct order of importing dependencies, since it loads the assets before all other assets loaded using less @import.

Is there anything that I'm missing here?

I use rails 3.2 with less-rails 2.4.

Yan Foto
  • 10,850
  • 6
  • 57
  • 88

1 Answers1

0

You shouldn't need to set asset-url or prepend your css with asset. less rails should be able to find your css with just simple import.

Roney Banerjee
  • 333
  • 5
  • 15