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

不配置viteThemePlugin会导致__COLOR_PLUGIN_OUTPUT_FILE_NAME__ 为undefined #24

Open
rex-ll opened this issue Jul 31, 2022 · 9 comments

Comments

@rex-ll
Copy link

rex-ll commented Jul 31, 2022

如果项目只用到了antdDarkThemePlugin这个插件则viteThemePlugin里的代码就不用运行,这就会导致__COLOR_PLUGIN_OUTPUT_FILE_NAME__ 等变量没有值

@jiangmaniu
Copy link

+1

@sunnala
Copy link

sunnala commented Aug 9, 2022

+1 能不能不让这个插件和vben-admin项目耦合,可以通过配置项去关闭多主题

@passioncsu
Copy link

锁定 0.8.1 可用 "vite-plugin-theme": "0.8.1",

@bailihuiyue
Copy link

锁定 0.8.1 可用 "vite-plugin-theme": "0.8.1",

锁定之后也不行么,还是报一样的错呢

@18600917746
Copy link

锁定 0.8.1 可用 "vite-plugin-theme": "0.8.1",

锁定之后也不行么,还是报一样的错呢

请问你们是怎么解决的

@luocong2016
Copy link

+1

@luocong2016
Copy link

luocong2016 commented Feb 15, 2023

别信什么降版本,没用的,直接看 vite/plugin/theme

@jasonz18
Copy link

vite版本使用2.X,不要升级

@gpnusewade
Copy link

image
image
可能跟模块导出有关,可以用一个函数进行拦截测试看看,实在不行劫持之后直接改写transform函数

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

9 participants