windicss / vite-plugin-windicss

🍃 Windi CSS for Vite ⚡️
MIT License
854 stars 65 forks source link

Windows project folder name that contains a '(' character does not work #308

Open xntstack opened 2 years ago

xntstack commented 2 years ago

Windows project folder name that contains a '(' character does not work.

os: Windows 11 vite: 3.1.0 vite-plugin-windicss:1.8.7 svelte: 3.50.0 typescript: 4.8.2

It seems that the directory src is not scanned correctly. A workaround for this is to modify the scan.dirs configuration by inserting the character '*' in place of the '('.

e.g.: (scan.dirs test with string literals) D:\PlasticSCM-Project\PRO - Tool X - (WebApp) [does not work] D:\PlasticSCM-Project\PRO - Tool X - *WebApp) [does work] D:\PlasticSCM-Project\PRO - Tool X - ?WebApp) [does not work and I expected the glob pattern to work] D:\PlasticSCM-Project\PRO - Tool X - \\(WebApp) [does not work and I expected the glob pattern to work]