duo

Build a css or js asset based on the given string. This exposes the core functionality of the duo frontend package manager and as such, may pull in additional assets such as fonts or images, which should be placed in a directory for static file serving, the default, as with vibe.d is public/.

string
duo
(
string source
,
bool js = true
,
string staticdir = "public"
)

Parameters

source
Type: string

Source code to pass to duo.

js
Type: bool

If this is javascript or css. Default true for javascript.

staticdir
Type: string

Your statically served asset directory. Default is public/

Return Value

Type: string

The duo outputed source file with all external assets built in.

Meta