You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check dist - .env.local is included in the build folder when *.local files have been excluded
Describe the bug
Because dotfiles are usually ignored by unbuild, trying to ignore local files while using builder: 'copy' by using pattern: ['*', '.*', '!*.local'] doesn't work for local dotfiles - to ignore local dotfiles you need to use '!.*.local', which works for this example but doesn't work for all builds.
I believe the expected behaviour would be for '..local' files to be included in '.local', as this is the behaviour in most tools (eg. node and git).
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered:
Environment
https://stackblitz.com/edit/stackblitz-starters-sh4sv7bx
Reproduction
pnpm install && pnpm run build
dist
-.env.local
is included in the build folder when*.local
files have been excludedDescribe the bug
Because dotfiles are usually ignored by unbuild, trying to ignore local files while using
builder: 'copy'
by usingpattern: ['*', '.*', '!*.local']
doesn't work for local dotfiles - to ignore local dotfiles you need to use'!.*.local'
, which works for this example but doesn't work for all builds.I believe the expected behaviour would be for '..local' files to be included in '.local', as this is the behaviour in most tools (eg. node and git).
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: