function build(src, type, compress, config, opts) {
    let fileExtension;
    if (type === 'rtl' && compress) {
        fileExtension = settings.rename.rtlMinCSS;
    } else if (type === 'rtl') {
        fileExtension = settings.rename.rtlCSS;
    } else if (compress) {
        fileExtension = settings.rename.minCSS;
    }

    return gulp.src(src, opts)
        .pipe(plumber(settings.plumber.less))
        .pipe(less(settings.less))
        .pipe(autoprefixer(settings.prefix))
        .pipe(gulpif(type === 'rtl', rtlcss()))
        .pipe(replace(comments.variables.in, comments.variables.out))
        .pipe(replace(comments.license.in, comments.license.out))
        .pipe(replace(comments.large.in, comments.large.out))
        .pipe(replace(comments.small.in, comments.small.out))
        .pipe(replace(comments.tiny.in, comments.tiny.out))
        .pipe(flatten())
        .pipe(replace(
            config.paths.assets.source,
            compress ? config.paths.assets.compressed : config.paths.assets.uncompressed
        ))
        .pipe(gulpif(compress, minifyCSS(settings.minify)))
        .pipe(gulpif(fileExtension, rename(fileExtension)))
        .pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
        .pipe(gulp.dest(compress ? config.paths.output.compressed : config.paths.output.uncompressed))
        .pipe(print(log.created));
}
Builds the CSS
@param src
@param type
@param compress
@param config
@param opts
@return {*}