-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
https://stackblitz.com/edit/stackblitz-starters-sh4sv7bx
Reproduction
- Run
pnpm install && pnpm run build
- 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
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working