-
Notifications
You must be signed in to change notification settings - Fork 94
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
How to use NaiveUI with vite-ssr? #168
Comments
This is my workaround: I modify entry-server.js and html.js in vite-ssr (commented // changed), and use postinstall script to replace it after yarn/npm install package.json
./src/utils/entry-server.js
./src/utils/html.js
./index.html
./src/main.js
./vite.config.js
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NaiveUI provide a good example of how to use it with ssr: https://github.com/07akioni/naive-ui-vite-ssr . The algorithm is as follows: first you need to collect all css from project and then inject its in the index.html file on the server. But I can't figure out how to do it with vite-ssr.
The text was updated successfully, but these errors were encountered: