How to use Twitter Bootstrap 3 with play framework 2.3

前端 未结 5 574
庸人自扰
庸人自扰 2021-01-04 19:04

I have been trying adding bootstrap\'s js and css files to public/javascripts and public/stylesheets application in play framework application. I donno why but I get a blan

5条回答
  •  甜味超标
    2021-01-04 19:44

    In the build.sbt file add the following:

    resolvers ++= Seq(
      "webjars"    at "http://webjars.github.com/m2"
    )
    
    libraryDependencies ++= Seq(
      "org.webjars"               %% "webjars-play"       % "2.3.0",
      "org.webjars"               % "bootstrap"           % "3.0.0" exclude("org.webjars", "jquery"),
      "org.webjars"               % "jquery"              % "1.8.3"
    )
    

提交回复
热议问题