summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@gmail.com>2020-11-26 16:33:28 +0100
committerBenjamin Franzke <benjaminfranzke@gmail.com>2021-07-09 09:20:13 +0200
commitad71f066fec3d7f0adfc5cfafc6fafc18f85be3e (patch)
treee482300336a5b68298e7f28bc129129a88ef3749
parent4bcfc57df2e6173b4f26ce893239a25f02ba4b11 (diff)
downloaddotfiles-ad71f066fec3d7f0adfc5cfafc6fafc18f85be3e.tar.gz
dotfiles-ad71f066fec3d7f0adfc5cfafc6fafc18f85be3e.tar.bz2
dotfiles-ad71f066fec3d7f0adfc5cfafc6fafc18f85be3e.zip
gitconfig: Configure minjs/css prettier
-rw-r--r--.config/git/config10
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/git/config b/.config/git/config
index 78f43a0..850060d 100644
--- a/.config/git/config
+++ b/.config/git/config
@@ -33,3 +33,13 @@
[credential]
helper = libsecret
+
+[diff "minjs"]
+ # See https://scripter.co/git-diff-minified-js-and-css/
+ # npm install -g js-beautify
+ # and in .gitattributes: *.min.js diff=minjs
+ textconv = js-beautify
+ cachetextconv = true
+[diff "mincss"]
+ textconv = js-beautify --css
+ cachetextconv = true