This little script compress the svg files and remove all unnecessary code elements from files.
- Switch to folder after clone repository
- Execute command
npm install
- Copy files in folder
svg
- Execute command
npm run comp
- Check the compressed files in folder
compressedSvg
npm run comp
: delete the destination folder and compress the file on normal waynpm run compBase64
: delete the destination folder and compress the file as base64npm run compUriEncoded
: delete the destination folder and compress the file as URI encodednpm run compUriUnencoded
: delete the destination folder and compress the file as URI unencodednpm run clean
: clean up the foldersvg
andcompressedSvg
for a clean start