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

vite.config.js #4276

Closed
6 tasks done
general-guan opened this issue Jul 16, 2021 · 2 comments · Fixed by #4310
Closed
6 tasks done

vite.config.js #4276

general-guan opened this issue Jul 16, 2021 · 2 comments · Fixed by #4310

Comments

@general-guan
Copy link

Describe the bug

vite.config.js 文件配置 publishDir 为 './' ,npm run build(vite build)时,会打包出无数个 dist 的嵌套文件夹

Reproduction

System Info

Used Package Manager

npm

Logs

No response

Validations

@github-actions
Copy link

Hello @WilliamGjj. Please provide a minimal reproduction using a GitHub repository or codesandbox. Issues marked with need reproduction will be closed if they have no activity within 3 days.

@ygj6
Copy link
Member

ygj6 commented Jul 19, 2021

When I set publicDir to './', there is an infinite loop in copyDir function.

export function copyDir(srcDir: string, destDir: string): void {

Although I think setting publicDir to./ may not be appropriate, but it is indeed a bug. I will try to fix it.

@Shinigami92 Shinigami92 linked a pull request Jul 19, 2021 that will close this issue
9 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Aug 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants