A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neomaclin/sbt-simple-url-update below:

GitHub - neomaclin/sbt-simple-url-update

[sbt-web] plugin for updating the static assets which having the url refering to other asset.

Add the plugin to project/plugins.sbt. For example:

addSbtPlugin("org.neolin.sbt" % "sbt-simple-url-update" % "1.0.0")

Your project's build file also needs to enable sbt-web plugins. For example with build.sbt:

lazy val root = (project.in file(".")).enablePlugins(SbtWeb)

As with all sbt-web asset pipeline plugins you must declare their order of execution e.g.:

pipelineStages := Seq(digest, simpleUrlUpdate, digest, gzip)

Supported hash algorithms are md5 and sha1. The default is to only update the asset having md5 checksum files. To configure this, modify the algorithms setting. For example, to also generatesha1 checksum files:

UrlUpdateKeys.algorithms += "sha1"

Include and exclude filters can be provided. For example, to only create checksum files for .js files:

includeFilter in simpleUrlUpdate := "*.js"

default is to have .css and .js files updated.

includeFilter in simpleUrlUpdate := "*.js" || "*.css"

Copyright (c) 2014 ICRL

See the file license.txt for copying permission.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4