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

SSR字段未生效 #9

Open
2815261401 opened this issue May 13, 2024 · 4 comments
Open

SSR字段未生效 #9

2815261401 opened this issue May 13, 2024 · 4 comments

Comments

@2815261401
Copy link

打包前
image

打包后
image

dev模式可以使用
image
image
这是调试看到的数据
image

@2815261401
Copy link
Author

image

@yue1123
Copy link
Owner

yue1123 commented May 13, 2024

这个环境变量我也没怎么用过,是不是需要什么配置或者在打包时加一些命令参数,插件本身是不会过滤任何属性的,只会读取vite提供的环境变量,有哪些环境变量是vite内部处理的

@2815261401
Copy link
Author

不使用插件打包是这个样子
image
有没有办法不转换成对象

@yue1123
Copy link
Owner

yue1123 commented May 13, 2024

我确认一下

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

No branches or pull requests

2 participants