0

I am currently working on a presentation platform hosted by Gitlab. The JavaScript code and the CSS templates shall be in one repository. The user shall open then a new repository based on a template and use the JavaScript code from the "main" repository for the individual presentation webpage. Everything works if its all together in one repository, but I do not know how to call a JavaScript file from another repository without a workaround which is to complicated for the users. So the question is, how can I use other files from another repository in Gitlab. Something like this:

<link rel="stylesheet" href="path_to_main_repo/dist/theme/black.css" id="theme">

Best regards, Jonas

clanky1997
  • 82
  • 5
  • possible duplicate of [Link and execute external JavaScript file hosted on GitHub](https://stackoverflow.com/questions/17341122/link-and-execute-external-javascript-file-hosted-on-github) and [How to link files directly from Github (raw.github.com)](https://stackoverflow.com/questions/8779197/how-to-link-files-directly-from-github-raw-github-com/24425890#24425890). Note the dates of the answers. This question has been brought up a number of times over the years, some answers are outdated – Elissi Apr 13 '22 at 14:27

0 Answers0