INNER CODE UNIT · JavaScript

taskMinifyCSS

mdziekon/UniEngine · gulpfile.js:158

function taskMinifyCSS () {
    const cssoOptions = {
        restructure: false,
        sourceMap: false,
        debug: false
    };

    return gulp.src([
        "./css/**/**.css",
        "!./css/**/**.min.css"
    ], { base: process.cwd() })
        .pipe(csso(cssoOptions))
        .pipe(rename(function (path) {
            path.dirname = "dist/" + path.dirname;
        }))
        .pipe(pluginHandleCacheBusting({
            includedExtensions: ".min.css",
            cacheBustingPart: ".cachebuster-",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…