INNER CODE UNIT · JavaScript

taskMinifyJS

mdziekon/UniEngine · gulpfile.js:135

function taskMinifyJS () {
    return gulp.src([
        "./js/**/**.js",
        "!./js/**/**.min.js"
    ], { base: process.cwd() })
        .pipe(terser(terserOptions))
        .pipe(rename(function (path) {
            path.dirname = "dist/" + path.dirname;
        }))
        .pipe(pluginHandleCacheBusting({
            includedExtensions: ".min.js",
            cacheBustingPart: ".cachebuster-",
            deleteDuplicate: true,
            logChanges: true
        }))
        .pipe(rename({
            extname: (
                ".cachebuster-" + (+(new Date())) + ".min.js"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…