brew install ffmpegbrew install gifsicle
brew install ffmpegbrew install gifsicle
| // Stato - State managment - Since javascript is non-reactive | |
| function createStore(reducer, initialState) { | |
| var store = {}; | |
| store.state = initialState; | |
| store.listeners = []; | |
| function subscribe(listener) { | |
| store.listeners.push(listener); | |
| } |
| #!bin/sh | |
| # Exit the script on any command with non 0 return code | |
| set -e | |
| npx sharp -i ./content/images/icon.png -o ./static/icons/favicon-16x16.png resize 16 | |
| npx sharp -i ./content/images/icon.png -o ./static/icons/favicon-32x32.png resize 32 | |
| npx sharp -i ./content/images/icon.png -o ./static/icons/favicon-96x96.png resize 96 | |
| npx sharp -i ./content/images/icon.png -o ./static/icons/icon-512x512.png resize 512 | |
| npx sharp -i ./content/images/icon.png -o ./static/icons/icon-384x384.png resize 384 |