| Pixels (px) | Rem |
|---|---|
| 8px | 0.5rem |
| 10px | 0.625rem |
| 12px | 0.75rem |
| 14px | 0.875rem |
| 16px | 1rem |
| --- | --- |
| 18px | 1.125rem |
| 20px | 1.25rem |
Install Husky from https://typicode.github.io/husky/get-started.html
yarn add --dev husky
# Add pinst ONLY if your package is not private
yarn add --dev pinst
In the wp-content/themes/your-theme/.husky folder add a file called pre-commit. Inside pre-commit type:
Switch from latest PHP (might be 8.2) to 7.4
brew unlink php && brew link php@7.4 --force --overwrite && php -v
Switch from PHP 7.4 to latest PHP (might be 8.2)
brew unlink php@7.4 && brew link php --force --overwrite && php -v
Check the PHP version with
php -v
From: https://www.codedodle.com/convert-jpegs-and-pngs-to-webps.html https://www.codedodle.com/convert-jpegs-and-pngs-to-webps.html
# Convert PNGs
find . -iname "*.png" -print0 | xargs -0 -n 1 -P 0 -I '{}' cwebp '{}' -short -q 90 -alpha_q 100 -m 6 -o '{}'.webp
# Convert JPGs
find . \( -iname "*.jpg" -o -iname "*.jpeg" \) -print0 | xargs -0 -n 1 -P 0 -I '{}' cwebp -short -q 80 '{}' -o '{}'.webp
- Template From: https://natelandau.com/my-mac-osx-bash_profile/
- Colors from
CMD + SHIFT + F
-*.css,-*.scssc,-node_modules
Credit: laravel/valet#296 (comment)
IMPORT valet's CA to Firefox's certificate Authorities
- Firefox > Preferences
- Privacy & Security > View Certificates
- Authorities > Import
- CMD + SHIFT + G
~/.config/valet/CA/>LaravelValetCASelfSigned.pem
NewerOlder