如何在 Play 2.5 中禁用前端资产编译?
How do I disable front-end assets compilation in Play 2.5?
我正在使用 Play Framework 2.5.1 创建应用程序,我想使用 Gulp 而不是 SBT 来编译和缩小前端内容。有没有办法让我在 activator ~run
上禁用自动重新编译,这样我仍然可以将 JS 和 Less 保留在 app\assets
下,而是使用 Gulp 来构建前端?
我的配置:
disablePlugins(PlayLayoutPlugin).settings(
....
watchSources := (watchSources.value
--- baseDirectory.value / "app" ** "*"
--- baseDirectory.value / "public" ** "*").get,
cleanFiles <+= baseDirectory { base => base / "src" / "main" / "public" }
)
从监视中删除 app/public
清理public目录
我正在使用 Play Framework 2.5.1 创建应用程序,我想使用 Gulp 而不是 SBT 来编译和缩小前端内容。有没有办法让我在 activator ~run
上禁用自动重新编译,这样我仍然可以将 JS 和 Less 保留在 app\assets
下,而是使用 Gulp 来构建前端?
我的配置:
disablePlugins(PlayLayoutPlugin).settings(
....
watchSources := (watchSources.value
--- baseDirectory.value / "app" ** "*"
--- baseDirectory.value / "public" ** "*").get,
cleanFiles <+= baseDirectory { base => base / "src" / "main" / "public" }
)
从监视中删除 app/public
清理public目录