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

Exclude OS files when copying the static directory #13567

Open
hyunbinseo opened this issue Mar 11, 2025 · 0 comments
Open

Exclude OS files when copying the static directory #13567

hyunbinseo opened this issue Mar 11, 2025 · 0 comments
Labels

Comments

@hyunbinseo
Copy link
Contributor

Describe the bug

These files included in the default .gitignore are copied on vite build command.

# OS
.DS_Store
Thumbs.db

Maybe they can be excluded by the adapters? (e.g. adapter-node)

Reproduction

pnpm dlx sv create .

ls -a static
# .
# ..
# favicon.png

touch static/.DS_Store

ls -a static
# .
# ..
# .DS_Store -- added
# favicon.png

pnpm build

ls -a .svelte-kit/output/client
# .
# ..
# .DS_Store -- copied
# .vite
# _app
# favicon.png

Same for adapter-node generated build:

ls -a build/client             
# .
# ..
# .DS_Store
# _app
# favicon.png

Logs

System Info

System:
  OS: macOS 15.3.1
  CPU: (10) arm64 Apple M1 Pro
  Memory: 77.36 MB / 16.00 GB
  Shell: 5.9 - /bin/zsh
Binaries:
  Node: 22.14.0 - ~/.local/state/fnm_multishells/66551_1741704413922/bin/node
  Yarn: 1.22.22 - ~/.local/state/fnm_multishells/66551_1741704413922/bin/yarn
  npm: 10.9.2 - ~/.local/state/fnm_multishells/66551_1741704413922/bin/npm
  pnpm: 10.6.1 - ~/.local/state/fnm_multishells/66551_1741704413922/bin/pnpm
Browsers:
  Chrome: 134.0.6998.44
  Edge: 134.0.3124.51
  Safari: 18.3
npmPackages:
  @sveltejs/adapter-auto: ^4.0.0 => 4.0.0 
  @sveltejs/adapter-node: ^5.2.12 => 5.2.12 
  @sveltejs/kit: ^2.16.0 => 2.19.0 
  @sveltejs/vite-plugin-svelte: ^5.0.0 => 5.0.3 
  svelte: ^5.0.0 => 5.22.6 
  vite: ^6.0.0 => 6.2.1

Severity

annoyance

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants