-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Allow users to import the globalCSS themselves #56
Conversation
🦋 Changeset detectedLatest commit: a1c9f50 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need documentation, if you could add it that'd be great
Co-authored-by: Louis Escher <[email protected]>
This pull request introduces a new option to the
integration
function in thepackages/studiocms_ui/src/index.ts
file, allowing users to disable automatic CSS injection. The most important changes include adding thenoInjectCSS
option to theOptions
type and modifying the CSS injection logic accordingly.Enhancements to CSS injection:
packages/studiocms_ui/src/index.ts
: Added thenoInjectCSS
option to theOptions
type, which allows users to disable automatic CSS injection and manually add the global CSS if desired.packages/studiocms_ui/src/index.ts
: Updated theintegration
function to check thenoInjectCSS
option before injecting the global CSS script.This is especially useful for StudioCMS where we don't want our dashboard styles leaking to the front-end or other packages.