duod.compilation

This module implements the compilation functionality. Provides commands to compile and minify assets from their source with duod.

Members

Functions

build
void build(string sourcePath, string staticPath, string staticdir, bool min)

Much the same as compile however build takes and outputs files.

compile
string compile(string source, bool js, string staticdir, bool min)

Compile the given asset source with duo and optionally minify/uglify the output.

duo
string duo(string source, bool js, string staticdir)

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/.

uglify
string uglify(string source, bool js)

Compress assets via uglifying (aka minifying) them with yuglify. This takes in javascript or css and can output code with the same functionality at a fraction of the size.

Meta