1

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

4

1 回答 1

1

我的配置:

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

  • 清理公共目录

于 2016-04-08T06:25:35.490 回答