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

change theme color not working on production mode #26

Open
munkh-altai opened this issue Aug 29, 2022 · 3 comments
Open

change theme color not working on production mode #26

munkh-altai opened this issue Aug 29, 2022 · 3 comments

Comments

@munkh-altai
Copy link

change heme color not working on production mode.

<style id="__VITE_PLUGIN_THEME__"></style> is alway empty.

dev mode normal working

@munkh-altai munkh-altai changed the title change heme color not working on production mode change theme color not working on production mode Feb 19, 2023
@zhan2309
Copy link

same

@zhan2309
Copy link

Yuliang-Lee added a commit to Yuliang-Lee/vite-plugin-theme that referenced this issue Mar 26, 2024
- fix bug vbenjs#27 修复 vite 升级 3 版本后插件出现变量未定义的报错。
- fix bug vbenjs#26 修复生产环境切换主题失效的问题。
@Yuliang-Lee
Copy link

针对 vite-plugin-theme 的问题修复发了新的包,使用新的包在初始化 viteThemePlugin 时传入 isProd: true 即可解决问题
https://www.npmjs.com/package/@xlaoyu/vite-plugin-theme

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

3 participants