Gulp.js: Difference between revisions

Content deleted Content added
changed title for a fitting way
Line 80:
</syntaxhighlight>
 
The subsequent image Task performs optimizingoptimising images. <Code> gulp.src () </code> retrieves all the images with the extension .png, .gif or .jpg in the directory '' <nowiki/> 'images-orig/' <nowiki/> ''. <Code> .pipe (imagemin ()) </code> schleußtschedules the images found by the optimizationoptimisation process through and with <code> .pipe (gulp.dest ()) </code> are the optimizedoptimised images afterwards to folder '' <nowiki/> 'images/' <nowiki/> '' saved. Without <code> gulp.dest () </code> the images would indeed optimizedoptimised, but are not stored <ref> {{Internet source | url = http://magazin.phlow.de/webdesign/gulp/| Title = by starting with Gulp.js - optimizingoptimising sites automating sequences | author = | = ed | factory = | date = | language = | = access </ref> Since we store 2016-05-30}} the optimized images to another folder , the original images remain with us. <syntaxhighlight lang = "javascript">
// Images task
gulp.task ( 'images', function () {