A minify WebPart for Suave
F#
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Suave.Minify
.gitignore
COPYING.txt
README.md
Suave.Minify.sln

README.md

Suave.Minify

A minify WebPart for Suave

In the following example the combinator jsbundle file-list compress all javascript files in the list and concatenates them into a single response.

open Suave
open Suave.Minify

let part : WebPart =
  Filters.path "/jsbundle" >=> jsBundle ["js/jquery-3.1.1.min.js"; "js/chess.js"; "js/app.js"]

*Depends on YUICompressor.NET

Build status