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

[Bug]: Why is there a .gitkeep file in the dist folder generated by build? This conflicts with the .gitignore file generated by pnpm create rsbuild@latest #4666

Closed
ltbyun opened this issue Feb 27, 2025 · 1 comment · Fixed by #4748
Assignees

Comments

@ltbyun
Copy link

ltbyun commented Feb 27, 2025

Version

System:
    OS: Windows 10 10.0.19044
    CPU: (16) x64 AMD Ryzen 7 7840HS with Radeon 780M Graphics
    Memory: 13.52 GB / 27.82 GB
  Browsers:
    Edge: Chromium (133.0.3065.82)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    @rsbuild/core: ^1.2.8 => 1.2.12
    @rsbuild/plugin-react: ^1.1.0 => 1.1.1

Details

.gitignore中明确写了忽略dist/文件, 生成的dist文件夹中又有.gitkeep文件.

Reproduce link

https://codesandbox.io/p/github/rspack-contrib/rsbuild-codesandbox-example/main

Reproduce Steps

pnpm create rsbuild@latest --dir my-project --template react
cd my-project
pnpm i
pnpm run dev

@chenjiahan chenjiahan changed the title [Bug]: build生成的dist文件夹中, 为何有.gitkeep这个文件? 这与pnpm create rsbuild@latest生成的.gitignore是冲突的 [Bug]: Why is there a .gitkeep file in the dist folder generated by build? This conflicts with the .gitignore file generated by pnpm create rsbuild@latest Feb 27, 2025
@chenjiahan chenjiahan self-assigned this Feb 27, 2025
@chenjiahan
Copy link
Member

I will update the templates to fix this

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

Successfully merging a pull request may close this issue.

2 participants