Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat:add ssr styles inject function.#1855

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
lifeishell wants to merge1 commit intovuejs:main
base:main
Choose a base branch
Loading
fromlifeishell:feature/ssr-inject-styles

Conversation

lifeishell
Copy link

@lifeishelllifeishell commentedJul 19, 2021
edited
Loading

feat: Finish SSR part css inject.
linked to#1759

Exposes style's __inject__ function (which comes from vue-style-loader ) to script
Then you can use it to append styles on SSR context
Usage:

App.__inject__(context); // append styles on req context app = Vue.createSSRApp(App, context);... other ssr codes ...html = template.replace('</head>', `${context.context || ''}</head>`); // append styles to html head

gfordinal and EsunR reacted with thumbs up emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@lifeishell

[8]ページ先頭

©2009-2025 Movatter.jp