A
A
Alexander Karpov2017-06-16 16:44:54
Node.js
Alexander Karpov, 2017-06-16 16:44:54

How to render SVG in Node.js?

I will try to explain the problem.
When a designer draws svg (icons, for example), he does not worry that as a result, non-relative paths in the path, width, height, viewbox may not contribute to convenient work at all, and the object can also be shifted using transform. This is very annoying when creating icon fonts, for example. Right now I'm building them with gulp-iconfont.
There is a service (icomoon), where you can solve some of my problems, but for this you need to edit each icon manually. I would like to do it on the fly. Please tell me if you understand what I mean. I tried to illustrate what is bothering me: 63374790a44846d1a7c278ac7794f494.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alvvi, 2017-06-16
@alvvi

SVGO , most likely there is also a gulp wrapper.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question