Merge pull request #1582 from bseib/1306-preserve-svg-symbol-viewbox
Preserve viewBox attribute in SVG sprite symbols
This commit is contained in:
commit
c56916a8e0
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user