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

[建议]对static目录也支持env环境变量 #1865

Open
simonetoo opened this issue Feb 25, 2025 · 2 comments
Open

[建议]对static目录也支持env环境变量 #1865

simonetoo opened this issue Feb 25, 2025 · 2 comments

Comments

@simonetoo
Copy link

指定env时:会将/static/[mode]/[env]目录 和/static/[mode]和/static目录进行合并。

@hiyuki
Copy link
Collaborator

hiyuki commented Feb 25, 2025

感觉不太好实现,因为env完全是用户自定义的,可能有也可能没有,也不是一个可枚举的值,所以在copy /static/[mode]的时候无法确定需要排除掉哪些文件夹,如果除了[env]之外全部排除掉也可能带来非预期的bad case

@simonetoo
Copy link
Author

那可以不合并,或者反过来,/static/[env]/[mode]

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