Skip to content

Commit b593cbb

Browse files
committed
Fix frontend build issue for Arches installed with pipenv, poetry or uv
Resolves archesproject#11764 The convention of naming a virtual environment "`.venv`" appears to have been adopted by the above package managers. The fix addresses the issue of templates in directories that contain a dot (specifically for Arches installed with the above package managers) while ensuring that dotfiles, such as macOS' .DS_Store (archesproject#11094), are ignored.
1 parent a53dca7 commit b593cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack/webpack-utils/build-filepath-lookup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function buildFilepathLookup(path, staticUrlPrefix) {
2828

2929
return getFileList(path).reduce((lookup, file) => {
3030
// Ignore dotfiles
31-
if (file.match(new RegExp(Path.sep + '\\.')) || file.match(/^\./)) {
31+
if (Path.basename(file).startsWith('.')) {
3232
return lookup;
3333
}
3434
const extension = file.match(/[^.]+$/).toString();

0 commit comments

Comments
 (0)