aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-01-13 15:58:27 +0000
committerGitHub <noreply@github.com>2020-01-13 15:58:27 +0000
commitc56916a8e01a669cad41c191fa71197df2076e58 (patch)
treee1cc22072c6860824e8837f2490b958c35ef6fdf /gulpfile.js
parente7c6f965b4cfca5d7894835ce18ee30019f8f3cd (diff)
parent12e5099c921334a1c0b092fb965b4c9ee8c8bc8e (diff)
downloadplyr-c56916a8e01a669cad41c191fa71197df2076e58.tar.lz
plyr-c56916a8e01a669cad41c191fa71197df2076e58.tar.xz
plyr-c56916a8e01a669cad41c191fa71197df2076e58.zip
Merge pull request #1582 from bseib/1306-preserve-svg-symbol-viewbox
Preserve viewBox attribute in SVG sprite symbols
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js
index df3ea844..93280f69 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -222,7 +222,11 @@ Object.entries(build.sprite).forEach(([filename, entry]) => {
gulp
.src(src)
.pipe(plumber())
- .pipe(imagemin())
+ .pipe(imagemin([
+ imagemin.svgo({
+ plugins: [{ removeViewBox: false }]
+ })
+ ]))
.pipe(svgstore())
.pipe(rename({ basename: path.parse(filename).name }))
.pipe(size(sizeOptions))