Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

clean

Mickael Daniel edited this page · 3 revisions

» Home

» Tasks


» clean: Wipe the previous build dirs.

» mkdirs: Prepares the build dirs.

» concat: Concatenate files. (built-in)

» css: Concats, replaces @imports and minifies CSS files.

» min: Minify files using UglifyJS (built-in)

» rev: Automate the revving of assets and perform the hash rename

» usemin: Replaces references to non-minified scripts / stylesheets


» serve: Spawns up a basic local http server

» connect: livereload version of serve task

Clone this wiki locally

Task - clean

The clean task will remove and delete any previous build dirs (which are mapping staging and output config value).

staging: 'intermediate/',

// final build output
output: 'publish/',

No necessary configuration other than staging and output value is needed.

Helpers

rimraf

rimraf is the helper wrapper for rimraf package. The given cb callback if passed in will make the call asynchronous, otherwise rimraf.sync is used.

task.helper('rimraf', dir, cb);
Something went wrong with that request. Please try again.