Created
November 28, 2016 10:13
-
-
Save pierrehenri220/7ed0ec016358430ea0c5c0e4d2ed391f to your computer and use it in GitHub Desktop.
Merge scss and keep only the selectors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash --ev | |
| find . -name '*.scss' -exec cat {} > override.scss \; | |
| perl -pi -e "s,.*?:.*\s\S,,g" override.scss | |
| perl -pi -e "s,.*\@.*\n,,g" override.scss | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment