How to use gulp-strip-debug - 3 common examples

To help you get started, we’ve selected a few gulp-strip-debug examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dvlden / vidage / gulp / tasks / scripts.js View on Github external
export function scriptsTask () {
    const entryPoint = path.join(config.root.src, task.path, task.entry)

    browserify(entryPoint, addons.browserify)
        .transform(babelify, addons.babelify)
        .bundle()
        .on('error', e => util.log(e))
        .pipe(source(task.entry))
        .pipe(buffer())
        .pipe(stripDebug())
        .pipe(gulp.dest(paths.dest))
        .pipe(uglify())
        .pipe(rename({ suffix: '.min' }))
        .pipe(gulp.dest(paths.dest))
}
github krux / postscribe / gulpfile.babel.js View on Github external
return () => webpackStream(config)
    .pipe(jsOnly)
    .pipe(header(BANNER))
    .pipe(rename({basename: basename, extname: '.max.js'}))
    .pipe(gulp.dest(DIST))
    .pipe(stripDebug())
    .pipe(rename({basename: basename, extname: '.js'}))
    .pipe(gulp.dest(DIST))
    .pipe(uglify({compress: {properties: false}, output: {'quote_keys': true}}))
    .pipe(header(BANNER))
    .pipe(rename({basename: basename, extname: '.min.js'}))
    .pipe(gulp.dest(DIST))
    .pipe(jsOnly.restore)
    .pipe(mapOnly)
    .pipe(gulp.dest(DIST));
}
github krux / prescribe / gulpfile.babel.js View on Github external
return () => webpackStream(config)
    .pipe(jsOnly)
    .pipe(header(BANNER))
    .pipe(rename({basename: basename, extname: '.max.js'}))
    .pipe(gulp.dest(DIST))
    .pipe(stripDebug())
    .pipe(rename({basename: basename, extname: '.js'}))
    .pipe(gulp.dest(DIST))
    .pipe(uglify({compress: {properties: false}, output: {'quote_keys': true}}))
    .pipe(header(BANNER))
    .pipe(rename({basename: basename, extname: '.min.js'}))
    .pipe(gulp.dest(DIST))
    .pipe(jsOnly.restore)
    .pipe(mapOnly)
    .pipe(gulp.dest(DIST));
}

gulp-strip-debug

Strip console and debugger statements from JavaScript code

MIT
Latest version published 1 year ago

Package Health Score

57 / 100
Full package analysis

Popular gulp-strip-debug functions