Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task('logic', () => {
return browserify('./src/viz/logic/index.js')
.bundle()
.pipe(source('index.js'))
.pipe(buffer())
.pipe( preprocess({ context: {PRODUCTION: opts.p} }) )
.pipe(gulp.dest('./build/dev'))
.pipe(gulpif(opts.p, uglify({preserveComments: 'license'})))
.pipe(gulp.dest('./build/dist'))
.on('error', gutil.log)
});