Skip to content

[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

@ltbyun

Description

@ltbyun

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions