index.js
function(buildPath, manifest) {
    fs.stat(manifest, function(err, stat) {
        if (! err) {
            manifest = JSON.parse(fs.readFileSync(manifest));

            for (var key in manifest) {
                del.sync(buildPath + '/' + manifest[key], { force: true });
            }
        }
    });
}
function(buildPath, manifest) {
    fs.stat(manifest, function(err, stat) {
        if (! err) {
            manifest = JSON.parse(fs.readFileSync(manifest));

            for (var key in manifest) {
                del.sync(buildPath + '/' + manifest[key], { force: true });
            }
        }
    });
}
function ( buildPath , manifest ) { fs . stat ( manifest , function ( err , stat ) { if ( ! err ) { manifest = JSON . parse ( fs . readFileSync ( manifest ) ) ; for ( var key in manifest ) { del . sync ( buildPath + '/' + manifest [ key ] , { force : true } ) ; } } } ) ; }
Empty all relevant files from the build directory.

@param  {string} buildPath
@param  {string} manifest
Empty all relevant files from the build directory .