vite-plugin-theme
vite-plugin-theme copied to clipboard
Vite plugin for dynamically changing the theme color of the interface
This Plugin is not working with Vite 3.1.0. I think it's related to [this commit](https://github.com/vitejs/vite/commit/2d2f2e5)
change heme color not working on production mode. is alway empty. dev mode normal working
如果项目只用到了antdDarkThemePlugin这个插件则viteThemePlugin里的代码就不用运行,这就会导致__COLOR_PLUGIN_OUTPUT_FILE_NAME__ 等变量没有值
Fixed variable undefined after vite upgrade version 3;Fixed Production mode switching theme failure.
fix bug #27 修复 vite 升级 3 版本后插件出现变量未定义的报错。 fix bug #26 修复生产环境切换主题失效的问题。
暗黑主题模式下,背景色被覆盖了,导致没生效  如何在其前面加 html[data-theme=dark]提高优先级?
 在 pnpm monorepo项目下, vite-plugin-theme 的安装安装位置在根目录路的node_modules 下, 而这里引用的是根目录下的路径会导致下图引用错误 
想请问下,这是qinkun的问题,还是这个插件的问题  
示例项目vben切换系统主题颜色功能在dev模式可以,生产环境无效。vben的在线预览项目切换主题颜色功能也无效。
vite2.6.x和2.7.x版本build后输出的文件内容空白(导致生成环境下换肤失效),2.5.x是正常的。 开发环境下是正常的。