I upgraded to play 2.3, and followed the instructions described in Using LESS CSS to use the less plugin. However, the less file is not being compiled to css and sent to target
. The JS files however are working.
All I did was to add the less and jslint plugins as follows:
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.0")
File structure:
/assets
/javascripts -> *.js files are linted and staged
/stylesheets -> *.less files not working
Thanks! It fixed now.
Only when *.scala
full build file is used. Add the following imports to the build:
import com.typesafe.sbt.web.SbtWeb.autoImport._
import com.typesafe.sbt.less.Import.LessKeys
Add the following to project settings:
includeFilter in (Assets, LessKeys.less) := "*.less"
// for minified *.min.css files
LessKeys.compress := true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With