Latest Entries »

Thursday, November 21, 2013

Playframework 2.2.1 with Bootstrap 3.0 less css compilation error [solved]

Like many developers you wish to have newest version of each tool. In my case it was exactly the same. I want playframework 2.2.1 and newest bootstrap. But yet not everything was working very good and I've got compilation errors on less files. Meanwhile there are few links: link1, link2 but they were not working correctly and therefore they were to complicated. I've combined some links, used my instinct and found easy way to fix this problem :)

Renaming helper files except bootstrap.less

Yes, it is very easy to do.

 Then I changed all imports:



Finally I changed encoding in my notepad++ to UTF:


Then in my view I could write this:
<link rel="stylesheet" href="@routes.Assets.at("stylesheets/bootstrap/bootstrap.css")" />