![]() ![]() st saves the file back to the file system.each file can be piped through a process (jshint, uglify, less, etc.).gulp.src “globs” files and returns a stream of virtual file objects.Requires to return either a Stream, a Promise or an Observable Then if an image file appears there, run an image optimization task. One way to approach this would be to set up a Grunt/Gulp/Webpack/Whatever watch task to watch the Desktop. gulp.src(…) st(…) Reads files Writes files What if we didn’t need to optimize images because any image that was on the Desktop was automatically optimized That’s what we’re shooting for here. #Gulp imageoptim install#
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |