diff options
author | Sam Potts <sam@potts.es> | 2020-01-13 15:58:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-13 15:58:27 +0000 |
commit | c56916a8e01a669cad41c191fa71197df2076e58 (patch) | |
tree | e1cc22072c6860824e8837f2490b958c35ef6fdf /gulpfile.js | |
parent | e7c6f965b4cfca5d7894835ce18ee30019f8f3cd (diff) | |
parent | 12e5099c921334a1c0b092fb965b4c9ee8c8bc8e (diff) | |
download | plyr-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.js | 6 |
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)) |