feat: add option to import css manually#116
Closed
mod08 wants to merge 1 commit intoxiaoluoboding:mainfrom
Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Owner
Author
|
Thanks for you're response! I saw the PR but wasn't sure how long it will take to make version 2 happen. Since this PR doesn't introduce any breaking changes it could have been a version in between. |
Owner
|
We are now support import css manually, checkout the version v2.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I needed a way to use vue-sonner inside a web component and therefore insert the css manually. I've updated the vite config to add the style.css to the build output and added a separate entry point which doesn't include the __insertCSSVueSonner function.
If someone wants to use the library without the css auto insert they can import from 'vue-sonner/manual'. import from 'vue-sonner' will still auto insert the css.
example
@xiaoluoboding let me know if that's something you want to support. If yes I can also update the docs.