function removeAssetIcons(files) {
    messages_1.default.logProcessFiles("remove:svg");
    const mapFiles = files.map((file) => {
        gulp_util_1.default.log("remove icon: " + file);
        const distFile = file
            .replace(config_1.config.src.iconset, "dist/assets")
            .replace(config_1.config.ribaShopify.root, config_1.config.dist.root);
        // TODO rename basename to iconset_ + basename?
        return distFile;
    });
    return gulp_1.default
        .src(mapFiles)
        .pipe(gulp_plumber_1.default(utilities_1.errorHandler))
        .pipe(vinyl_paths_1.default(del_1.default))
        .pipe(gulp_size_1.default({
        showFiles: true,
        pretty: true,
    }));
}
/**
 * Cleanup/remove svg assets from the `dist` directory during watch tasks if
 * any underlying SVG files in the `src` folder have been removed.
 *
 * @param files - glob/array of files to match & send to the stream
 */
Cleanup/remove svg assets from the `dist` directory during watch tasks if
any underlying SVG files in the `src` folder have been removed.

@param files - glob/array of files to match & send to the stream
Cleanup / remove svg assets from the ` dist ` directory during watch tasks if any underlying SVG files in the ` src ` folder have been removed . @param files - glob / array of files to match & send to the stream
function removeAssetIcons(files) {
    messages_1.default.logProcessFiles("remove:svg");
    const mapFiles = files.map((file) => {
        gulp_util_1.default.log("remove icon: " + file);
        const distFile = file
            .replace(config_1.config.src.iconset, "dist/assets")
            .replace(config_1.config.ribaShopify.root, config_1.config.dist.root);
        return distFile;
    });
    return gulp_1.default
        .src(mapFiles)
        .pipe(gulp_plumber_1.default(utilities_1.errorHandler))
        .pipe(vinyl_paths_1.default(del_1.default))
        .pipe(gulp_size_1.default({
        showFiles: true,
        pretty: true,
    }));
}
function removeAssetIcons ( files ) { messages_1 . default . logProcessFiles ( "remove:svg" ) ; const mapFiles = files . map ( ( file ) => { gulp_util_1 . default . log ( "remove icon: " + file ) ; const distFile = file . replace ( config_1 . config . src . iconset , "dist/assets" ) . replace ( config_1 . config . ribaShopify . root , config_1 . config . dist . root ) ; return distFile ; } ) ; return gulp_1 . default . src ( mapFiles ) . pipe ( gulp_plumber_1 . default ( utilities_1 . errorHandler ) ) . pipe ( vinyl_paths_1 . default ( del_1 . default ) ) . pipe ( gulp_size_1 . default ( { showFiles : true , pretty : true , } ) ) ; }
Cleanup/remove svg assets from the `dist` directory during watch tasks if
 any underlying SVG files in the `src` folder have been removed.
Cleanup / remove svg assets from the ` dist ` directory during watch tasks if any underlying SVG files in the ` src ` folder have been removed .
// TODO rename basename to iconset_ + basename?