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

feat: Simple CSS injection support #483

Merged
merged 4 commits into from Dec 8, 2021
Merged

feat: Simple CSS injection support #483

merged 4 commits into from Dec 8, 2021

Conversation

zhmushan
Copy link
Contributor

@zhmushan zhmushan commented Dec 6, 2021

This is a very preliminary CSS injection support, which cannot be flexibly configured
close: #479

@vercel
Copy link

vercel bot commented Dec 6, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/egoist/tsup/6dKptyojEZxQuWeCPziNMci6H9yu
✅ Preview: https://tsup-git-fork-zhmushan-injectcss-egoist.vercel.app

@zhmushan
Copy link
Contributor Author

zhmushan commented Dec 6, 2021

@egoist I will not implement configuration inheritance here (let the transformer know if the user has configured sourcemap, minify, etc.), nor will I split the module and abstract it. I'm afraid that if I do this, it will cause confusion for the author.

This is just a quick implementation, hopefully the author can reorganize this part of the code in a more logical way, and rename the API if necessary.

@zhmushan
Copy link
Contributor Author

zhmushan commented Dec 8, 2021

@egoist Any other suggestions?

@egoist egoist merged commit 8fb5d26 into egoist:dev Dec 8, 2021
@zhmushan zhmushan deleted the inject_css branch December 8, 2021 06:56
egoist added a commit that referenced this pull request Dec 10, 2021
Co-authored-by: EGOIST <0x142857@gmail.com>
@zhmushan zhmushan mentioned this pull request Dec 14, 2021
2 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.

[Wanted] Support inject style
2 participants