【问题标题】:How do I disable front-end assets compilation in Play 2.5?如何在 Play 2.5 中禁用前端资产编译?
【发布时间】:2016-07-29 06:21:06
【问题描述】:

我正在使用 Play Framework 2.5.1 创建应用程序,并且我想使用 Gulp 而不是 SBT 来编译和缩小前端内容。有没有办法让我禁用activator ~run 上的自动重新编译,这样我仍然可以将 JS 和 Less 保留在app\assets 下,而是使用 Gulp 构建前端?

【问题讨论】:

    标签: playframework gulp sbt playframework-2.5


    【解决方案1】:

    我的配置:

    disablePlugins(PlayLayoutPlugin).settings(
           ....    
             watchSources := (watchSources.value
               --- baseDirectory.value / "app" ** "*"
               --- baseDirectory.value / "public" ** "*").get,
             cleanFiles <+= baseDirectory { base => base / "src" / "main" / "public" }
           )
    
    • 从手表中删除应用/公共

    • 清理公共目录

    【讨论】:

      猜你喜欢
      • 2014-07-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-27
      • 2012-11-10
      • 2016-12-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多