function pack(type, compress) {
    const output = type === 'docs' ? docsConfig.paths.output : config.paths.output;
    const ignoredGlobs = type === 'rtl' ? globs.ignoredRTL + '.rtl.css' : globs.ignored + '.css';

    let concatenatedCSS;
    if (type === 'rtl') {
        concatenatedCSS = compress ? filenames.concatenatedMinifiedRTLCSS : filenames.concatenatedRTLCSS;
    } else {
        concatenatedCSS = compress ? filenames.concatenatedMinifiedCSS : filenames.concatenatedCSS;
    }

    let src = globs.components
        .replace(/[{}]/g, '')
        .split(',')
        .map((c) => {
            let srcSingle = output.uncompressed + '/**/' + c + ignoredGlobs;
            if (c === 'tab' && globs.components.indexOf('table') < 0) {
                srcSingle = [srcSingle, '!' + output.uncompressed + '/**/table.css'];
            }

            return gulp.src(srcSingle);
        });

    return ordered(src)
        .pipe(plumber())
        .pipe(dedupe())
        .pipe(replace(assets.uncompressed, assets.packaged))
        .pipe(concatCSS(concatenatedCSS, settings.concatCSS))
        .pipe(gulpif(config.stripHeaders, replace(comments.header.in, comments.header.out)))
        .pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
        .pipe(gulpif(compress, minifyCSS(settings.concatMinify)))
        .pipe(header(banner, settings.header))
        .pipe(gulp.dest(output.packaged))
        .pipe(print(log.created));
}
Packages the css files in dist
@param {string} type - type of the CSS processing (none, rtl, docs)
@param {boolean} compress - should the output be compressed