Skip to content

Instantly share code, notes, and snippets.

@coolaj86
Last active February 11, 2019 20:46
Show Gist options
  • Save coolaj86/4377712 to your computer and use it in GitHub Desktop.
Save coolaj86/4377712 to your computer and use it in GitHub Desktop.
CSS Tidy via LESS

If you have CSS syntax errors rename your .css files to .less, use vim + syntastic + and rejoice.

cd Code/project-dir
npm install -g less
ls *.css | while read CSS
do
lessc ${CSS} > ${CSS}.tidied && mv ${CSS}.tidied ${CSS}
done
@dylanfpaul
Copy link

dylanfpaul commented Feb 11, 2019

@coolaj86 Does this enable one to use "CSS Tidy" with Less files / syntax properly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment