diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-10-11 18:11:10 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-10-28 13:43:37 +0300 |
commit | a975033db072db8cc625d483241169cfb6150c5a (patch) | |
tree | 50a0647d7ef8e36af75b56ee9b31b7f934aba530 /README.md | |
parent | 5415f4e5f0daa55ed394f411c69826f41ede53cb (diff) |
Merge the two icons scripts.
Runs SVGO first and then adds the attributes.
Also, show the time spent.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -44,12 +44,12 @@ 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 prep and build them. Two npm scripts are 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 optimize and modify the HTML source code of our SVGs. -1. `npm run icons-prep` runs SVGO on our SVGs. -2. `npm run icons-build` processes the HTML, removes all attributes, and then sets new attributes and values in a particular order. +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. -Use `npm run icons` to run them in order, then commit the results in a new branch for updating. +Use `npm run icons` to run the script, then commit the results in a new branch for updating. ## Publishing |