LoginSignup
1
2

More than 5 years have passed since last update.

[Play Framework]外部ライブラリー管理

Posted at

build.sbtの設定

libraryDependencies ++= Seq(
    "org.webjars" %% "webjars-play" % "2.5.0",
    "org.webjars" % "bootstrap" % "3.3.6",
    "org.webjars" % "knockout" % "3.4.0",
    "org.webjars.bower" % "knockout-mapping" % "2.4.1"
)

上のようにwebjars-playと、各必要なライブラリーを追加。
各ライブラリーの一覧は、以下を参照
http://www.webjars.org/

ライブラリー読み込み

<link rel="stylesheet" href="@routes.Assets.versioned("lib/bootstrap/css/bootstrap.css")">

各ライブラリーのフォルダーは
target/web/public/main/lib
内にあるので、ここを参考にライブラリーの読み込みをする。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2