From bcaffeeff88d99c1794f03bc97fabcd111fd30ce Mon Sep 17 00:00:00 2001 From: infeeeee Date: Wed, 11 Sep 2019 12:14:41 +0200 Subject: [PATCH] minify svg mod --- _teendők.md | 2 -- gulpfile.js | 16 ++++++++++------ img/clip/be_desktop.svg | 26 +------------------------- img/clip/be_mobil.svg | 16 +--------------- img/clip/do_desktop.svg | 26 +------------------------- img/clip/do_mobil.svg | 15 +-------------- img/clip/love_desktop.svg | 26 +------------------------- img/clip/love_mobil.svg | 15 +-------------- img/clip/think_desktop.svg | 26 +------------------------- img/clip/think_mobil.svg | 15 +-------------- img/curvy_arrow.svg | 4 +--- img/dis-plus-black.svg | 2 +- img/dis-plus-white.svg | 2 +- img/facebook_icon-black.svg | 2 +- img/facebook_icon-white.svg | 2 +- img/instagram_icon-black.svg | 2 +- img/instagram_icon-white.svg | 2 +- img/kereso_icon-black.svg | 2 +- img/kereso_icon-white.svg | 2 +- img/naptar_icon-black.svg | 2 +- img/naptar_icon-white.svg | 2 +- img/solid_arrow_left.svg | 2 +- img/solid_arrow_right.svg | 2 +- 23 files changed, 31 insertions(+), 180 deletions(-) diff --git a/_teendők.md b/_teendők.md index ee27ba6..34d4d9b 100644 --- a/_teendők.md +++ b/_teendők.md @@ -6,8 +6,6 @@ Facebook like gomb # egyéb -Betöltéskor rejteni a dolgokat méretezés előtt, vagy betöltést optimalizálni - `@media print{}` # Megjegyzések diff --git a/gulpfile.js b/gulpfile.js index 68e3b33..2643f16 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -17,9 +17,9 @@ gulp.task('sass', function () { }); gulp.task('liverel', function () { - return gulp.src(['./**','!./node_modules/**']) + return gulp.src(['./**', '!./node_modules/**']) .pipe(livereload({ - quiet:true + quiet: true })) }) @@ -30,11 +30,15 @@ gulp.task('liverel', function () { gulp.task('watch', function () { livereload.listen() gulp.watch('./sass/**/*.scss', gulp.series('sass')) - gulp.watch(['./**','!./node_modules/**'], gulp.series('liverel')) + gulp.watch(['./**', '!./node_modules/**'], gulp.series('liverel')) }); -gulp.task('minify-svg', function(){ +gulp.task('minify-svg', function () { return gulp.src('./imgmax/**/*.svg') - .pipe(svgmin()) - .pipe(gulp.dest('./img')); + .pipe(svgmin({ + plugins: [{ + removeViewBox: false + }] + })) + .pipe(gulp.dest('./img')); }) diff --git a/img/clip/be_desktop.svg b/img/clip/be_desktop.svg index 35c266e..bad543b 100644 --- a/img/clip/be_desktop.svg +++ b/img/clip/be_desktop.svg @@ -1,25 +1 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/img/clip/be_mobil.svg b/img/clip/be_mobil.svg index 9b581d2..5cf33eb 100644 --- a/img/clip/be_mobil.svg +++ b/img/clip/be_mobil.svg @@ -1,15 +1 @@ - - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/img/clip/do_desktop.svg b/img/clip/do_desktop.svg index c0f5b9e..f9237d2 100644 --- a/img/clip/do_desktop.svg +++ b/img/clip/do_desktop.svg @@ -1,25 +1 @@ - - - - - - - - - image/svg+xml - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/img/clip/do_mobil.svg b/img/clip/do_mobil.svg index 01c1b87..72502e1 100644 --- a/img/clip/do_mobil.svg +++ b/img/clip/do_mobil.svg @@ -1,14 +1 @@ - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/img/clip/love_desktop.svg b/img/clip/love_desktop.svg index b107b7c..eb6dcc0 100644 --- a/img/clip/love_desktop.svg +++ b/img/clip/love_desktop.svg @@ -1,25 +1 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/img/clip/love_mobil.svg b/img/clip/love_mobil.svg index 4f7bbc1..cd47f9c 100644 --- a/img/clip/love_mobil.svg +++ b/img/clip/love_mobil.svg @@ -1,14 +1 @@ - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/img/clip/think_desktop.svg b/img/clip/think_desktop.svg index 7c25e6f..0d37dae 100644 --- a/img/clip/think_desktop.svg +++ b/img/clip/think_desktop.svg @@ -1,25 +1 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/img/clip/think_mobil.svg b/img/clip/think_mobil.svg index 3c1c3a8..3629e18 100644 --- a/img/clip/think_mobil.svg +++ b/img/clip/think_mobil.svg @@ -1,14 +1 @@ - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/img/curvy_arrow.svg b/img/curvy_arrow.svg index 82baedd..250612b 100644 --- a/img/curvy_arrow.svg +++ b/img/curvy_arrow.svg @@ -1,3 +1 @@ - - - \ No newline at end of file + \ No newline at end of file diff --git a/img/dis-plus-black.svg b/img/dis-plus-black.svg index fa11782..d5d0314 100644 --- a/img/dis-plus-black.svg +++ b/img/dis-plus-black.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/img/dis-plus-white.svg b/img/dis-plus-white.svg index 5ebf24e..3e272fd 100644 --- a/img/dis-plus-white.svg +++ b/img/dis-plus-white.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/img/facebook_icon-black.svg b/img/facebook_icon-black.svg index 51a7b5f..0bc57b3 100644 --- a/img/facebook_icon-black.svg +++ b/img/facebook_icon-black.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/img/facebook_icon-white.svg b/img/facebook_icon-white.svg index 58ae8ae..85bd524 100644 --- a/img/facebook_icon-white.svg +++ b/img/facebook_icon-white.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/img/instagram_icon-black.svg b/img/instagram_icon-black.svg index 62b4595..7cd5e9b 100644 --- a/img/instagram_icon-black.svg +++ b/img/instagram_icon-black.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/img/instagram_icon-white.svg b/img/instagram_icon-white.svg index 08d74bc..8c1d702 100644 --- a/img/instagram_icon-white.svg +++ b/img/instagram_icon-white.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/img/kereso_icon-black.svg b/img/kereso_icon-black.svg index 34c7776..8ce9ea0 100644 --- a/img/kereso_icon-black.svg +++ b/img/kereso_icon-black.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/img/kereso_icon-white.svg b/img/kereso_icon-white.svg index e42e3e2..75492cd 100644 --- a/img/kereso_icon-white.svg +++ b/img/kereso_icon-white.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/img/naptar_icon-black.svg b/img/naptar_icon-black.svg index 242afed..0c544e3 100644 --- a/img/naptar_icon-black.svg +++ b/img/naptar_icon-black.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/img/naptar_icon-white.svg b/img/naptar_icon-white.svg index 68be1bf..4760c71 100644 --- a/img/naptar_icon-white.svg +++ b/img/naptar_icon-white.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/img/solid_arrow_left.svg b/img/solid_arrow_left.svg index 52da7fd..bc3fb2d 100644 --- a/img/solid_arrow_left.svg +++ b/img/solid_arrow_left.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/img/solid_arrow_right.svg b/img/solid_arrow_right.svg index 205b95d..289b8aa 100644 --- a/img/solid_arrow_right.svg +++ b/img/solid_arrow_right.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file