Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to inject custom css and js files #8432

Merged
merged 3 commits into from
Feb 14, 2023
Merged

Conversation

fschade
Copy link
Collaborator

@fschade fschade commented Feb 14, 2023

Add option to include own header scripts and styles.
This function is currently still experimental and there is a possibility that the api will change.

For the reasons mentioned, the functionality is not yet documented in the official documentation, but can be used as follows:

  • to inject custom css add the following property to your config.json, "styles": [{ "href": "css/custom.css", }].
  • to inject custom scripts add the following property to your config.json, "scripts": [{ "src": "js/custom.js", "async": true, }].

The feature was requested in #4735 and backported from the experimental branch.

Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💪

@sonarcloud
Copy link

sonarcloud bot commented Feb 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

82.8% 82.8% Coverage
0.0% 0.0% Duplication

@kulmann kulmann merged commit 375cf0c into master Feb 14, 2023
@delete-merged-branch delete-merged-branch bot deleted the inject-customizations branch February 14, 2023 15:42
@micbar micbar mentioned this pull request May 3, 2023
89 tasks
@tbsbdr tbsbdr mentioned this pull request Jun 30, 2023
37 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants