dist/lib/build.js
function getFilePath(sourcePath, filename, subDir) {
    if (subDir === void 0) { subDir = ''; }
    var filePath = filename
        .replace(path.resolve(sourcePath), '')
        .replace(path.basename(filename), '');
    if (subDir) {
        filePath = filePath.replace(subDir + path.sep, '');
    }
    if (/^[\/\\]/.test(filePath)) {
        filePath = filePath.substr(1);
    }
    return filePath.replace(/\\/g, '/');
}
function getFilePath(sourcePath, filename, subDir) {
    if (subDir === void 0) { subDir = ''; }
    var filePath = filename
        .replace(path.resolve(sourcePath), '')
        .replace(path.basename(filename), '');
    if (subDir) {
        filePath = filePath.replace(subDir + path.sep, '');
    }
    if (/^[\/\\]/.test(filePath)) {
        filePath = filePath.substr(1);
    }
    return filePath.replace(/\\/g, '/');
}
function getFilePath ( sourcePath , filename , subDir ) { if ( subDir === void 0 ) { subDir = '' ; } var filePath = filename . replace ( path . resolve ( sourcePath ) , '' ) . replace ( path . basename ( filename ) , '' ) ; if ( subDir ) { filePath = filePath . replace ( subDir + path . sep , '' ) ; } if ( / ^[\/\\] / . test ( filePath ) ) { filePath = filePath . substr ( 1 ) ; } return filePath . replace ( / \\ / g , '/' ) ; }
get file path by filename
get file path by filename