Skip to content

guylando/svgo-addViewBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

svgo-addViewBox

svgo plugin which replaces width, height attributes of an svg with viewBox attribute to make it responsive.

How to use:

1)install svgo (https://github.com/svg/svgo) using "[sudo] npm install -g svgo" command

2)drop the addViewBox.js file inside the plugins subfolder of the folder where svgo is installed

3)add "- addViewBox" in svgo.yml file which is placed in the folder where svgo is installed.

4)execute by adding --disable=removeViewBox --enable=addViewBox when executing svgo, for example: "svgo --disable=removeViewBox --enable=addViewBox file.svg"

About

svgo plugin which replaces width, height attributes of an svg with viewBox attribute to make it responsive.

Resources

License

Stars

10 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors