function js(done) { jsFiles.map( function( entry ) { return browserify({ entries: [jsSRC + entry] }) .transform( babelify, { presets: [ '@babel/preset-env' ] } ) .bundle() .pipe( source( entry ) ) .pipe( rename( { extname: '.min.js' } ) ) .pipe( buffer() ) .pipe( gulpif( options.has( 'production' ), stripDebug() ) ) .pipe( sourcemaps.init({ loadMaps: true }) ) .pipe( uglify() ) .pipe( sourcemaps.write( '.' ) ) .pipe( dest( jsURL ) ) .pipe( browserSync.stream() ); }); done(); };
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter