Skip to content

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

License

Notifications You must be signed in to change notification settings

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

Watchers

Forks

Releases

No releases published

Packages

No packages published