Skip to content

Working with Windows instead of POSIX  #55

@ismailagac

Description

@ismailagac

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions