Last active
December 25, 2015 07:39
-
-
Save kopepasah/6940274 to your computer and use it in GitHub Desktop.
This function will compile style.less into style.css while converting the two spaces before the property into a tab. In addition, any comments that start with /** - will get a line inserted before that comment.
This file contains 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
function compile-less() { | |
lessc style.less | sed -E 's/\ (.*): (.*);/ \1: \2;/;s/(\/\*\* -)/\ | |
\1/' > style.css | |
} |
This file contains 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
lessc style.less | sed -E 's/\ (.*): (.*);/ \1: \2;/;s/(\/\*\* -)/\ | |
\1/' > style.css |
This file contains 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
lessc style.less | sed -E 's/\ (.*): (.*);/ \1: \2;/' > style.css |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment