If you have CSS syntax errors rename your .css files to .less, use vim + syntastic + and rejoice.
Last active
February 11, 2019 20:46
-
-
Save coolaj86/4377712 to your computer and use it in GitHub Desktop.
CSS Tidy via LESS
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
cd Code/project-dir | |
npm install -g less | |
ls *.css | while read CSS | |
do | |
lessc ${CSS} > ${CSS}.tidied && mv ${CSS}.tidied ${CSS} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@coolaj86 Does this enable one to use "CSS Tidy" with Less files / syntax properly?