Random Tricks

Finding things in your project from the commandline

find . -type f "*.scss" -wholename "*node_modules*" | xargs grep '\$foo'

will find "$foo" in all your scss files except for node_modules.

Regex Lookahead Practice

\$color-.*?(?=;|$)\

will match $color-boo from

$color-boo;
$color-boo