1. 程式人生 > 其它 >subresource integrity and autocrlf in git

subresource integrity and autocrlf in git

https://github.com/dotnet/aspnetcore/pull/20356

https://github.com/dotnet/aspnetcore/blob/main/.gitattributes

https://github.com/alexkaratarakis/gitattributes/blob/master/Web.gitattributes

https://www.w3.org/TR/SRI/

http://web.archive.org/web/20150912185006/http://adaptivepatchwork.com:80/2012/03/01/mind-the-end-of-your-line/

https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings

###############################################################################
# Make sure jQuery files always have LF as line endings (to pass SRI checks)
###############################################################################
jquery*.js eol=lf
jquery*.map
eol=lf
###############################################################################
# Make sure bootstrap files always have LF as line endings (to pass SRI checks)
###############################################################################
bootstrap*.js eol
=lf
bootstrap*.map eol=lf

bootstrap*.css eol=lf