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

Working with Windows instead of POSIX #55

Open
IA02 opened this issue Mar 27, 2023 · 0 comments
Open

Working with Windows instead of POSIX #55

IA02 opened this issue Mar 27, 2023 · 0 comments

Comments

@IA02
Copy link

IA02 commented Mar 27, 2023

inputDir = path.normalize(inputDir + '/') + "*.css";

I am running this project in Windows. After path.normalize, the slashes are backslash (running on Windows) but the real problem comes here: glob does not recogize backslashes.

To normalize and revert the backslashes following code needs to be put ether another solution my be found.:
var isWindow = process.platform === "win32";
//for Glob Lib, revert back
if(isWindow)
inputDir = inputDir.replace(/\\/g, '/');
A lot of people may know this, but I did not know it.
This is suggestion of mine.

Thanks
Best Regards
IA

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

No branches or pull requests

1 participant