Answer the question
In order to leave comments, you need to log in
How to overwrite a file with gulp?
It is necessary to optimize and store svg in the sources.
Planned to use gulp-svgmin
gulp.task('svg-minify', function () {
return gulp.src('logo.svg')
.pipe(svgmin())
.pipe(gulp.dest('logo.svg'));
});
Answer the question
In order to leave comments, you need to log in
stackoverflow.com/questions/22418799/can-gulp-over...
gulp.task('svg-minify', function () {
return gulp.src('logo.svg')
.pipe(svgmin())
.pipe (gulp.dest('./'));
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question