Reference GitHub file in jsFiddle

前端 未结 6 956
悲&欢浪女
悲&欢浪女 2020-11-30 18:36

Is there a possibility to misuse grab files from a github repo as external resources in jsFiddle?

6条回答
  •  攒了一身酷
    2020-11-30 18:47

    This is an updated answer, since the url's have changed slightly for Github... I ran into this issue and figured it out for present day. Hopefully this helps people out finding this post recently. Example for Bootstrap Slate theme from Bootswatch:

    1. Raw file url: https://raw2.github.com/thomaspark/bootswatch/gh-pages/slate/bootstrap.css

    2. Remove the 2. after raw: https://rawgithub.com/thomaspark/bootswatch/gh-pages/slate/bootstrap.css

    That's it! :D

提交回复
热议问题