Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Option to inject custom css and js files - #8432

Merged
kulmann merged 3 commits into
masterfrom
inject-customizations
Feb 14, 2023
Merged

kulmann merged 3 commits into
masterfrom
inject-customizations

Conversation

@fschade

@fschade fschade commented Feb 14, 2023 •

Copy link
Copy Markdown
Contributor

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.

@kulmann kulmann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💪

@sonarqubecloud

Copy link
Copy Markdown

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
53 of 89 tasks
@v-scharf v-scharf mentioned this pull request May 4, 2023
81 of 86 tasks
@tbsbdr tbsbdr mentioned this pull request Jun 30, 2023
37 tasks done
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants