- Add a new SVG icon file into
- Run the automation script
node ../generateSprite.jsto generate
icons.svgfrom those SVG files in the above folder. (the SVG's filename is exactly the icons' identifier)
- In the
meteor.startupcallback function, using
icons.svgfile as plain text to the client first, and then with the help of
injectIntoBodyfunction to insert the entire content as raw text into the body.
Note: the generated
icons.svg the file contains multiple icons, where we use the tag
symbol as a delimiter.