diff options
author | Mark Otto <markdotto@gmail.com> | 2019-10-15 01:09:17 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-10-28 13:43:37 +0300 |
commit | 29ea7cd66f4443eadf7584501cf8e138c5dd27d7 (patch) | |
tree | 076693493ca3c870c9719d99f757c6f5741d82fa /README.md | |
parent | a975033db072db8cc625d483241169cfb6150c5a (diff) |
updated readme
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -44,10 +44,10 @@ Then open `http://localhost:4000` in your browser. ## Adding SVGs -Once a new SVG icon has been added to the `icons` directory, you'll need to optimize them. An npm script is used to optimize and modify the HTML source code of our SVGs. +Once a new SVG icon has been added to the `icons` directory, you'll need to optimize them. An npm script is used to: -1. It runs SVGO on our SVGs. -2. Then processes the HTML, removes all attributes, and then sets new attributes and values in a particular order. +1. Optimize our SVGs with SVGO. +2. Modify the SVGs source HTML, removing all attributes before setting new attributes and values in our preferred order. Use `npm run icons` to run the script, then commit the results in a new branch for updating. |