Play 2.2.1 - twitter bootstrap 3 less settings

For a new project, I want to use Play 2.2.1 (java) and download Twitter 3 (less).

I followed the instructions posted here: Link to another answer But they seem to be specific to games version 2.1.x. I was stuck when telling Play not to compile each file less, but only bootstrap.less. How do I configure this? Any help would be greatly appreciated.

+8
less twitter-bootstrap-3 configuration
source share
1 answer

You can still use the pre 2.2.x method to configure your project using the project/Build.scala ( 2.2.x Release Notes - sbt 0.13 support ), but I think this is only possible when deleting a new build.sbt file .

On the playlist, another solution was discussed that works with the build.sbt file ( Installing lessEntryPoints in the build.sbt file ).

 play.Keys.lessEntryPoints <<= baseDirectory { base => (base / "app" / "assets" / "stylesheets" / "bootstrap" * "bootstrap.less") +++ (base / "app" / "assets" / "stylesheets" / "bootstrap" * "responsive.less") +++ (base / "app" / "assets" / "stylesheets" * "*.less") } 

I tested it in a small sample project and it works ( Sample project with game 2.2.1 and Bootstrap 3.1.0 on github ).

+8
source share

All Articles