|
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
mercury-template/npm_scripts/cleancss.js
Line 51 in 4214160
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 backif(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