mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-02 12:00:03 +02:00
do not loop forever reading config file
This commit is contained in:
@@ -132,7 +132,7 @@ readStdin(function(html) {
|
||||
try {
|
||||
return JSON.parse(fs.readFileSync(configfilepath + '/.cleancssrc'));
|
||||
} catch (e) {
|
||||
if (configfilepath != __dirname) {
|
||||
if (configfilepath.length < 4) {
|
||||
configfilepath = path.resolve(path.normalize(configfilepath + '/../'));
|
||||
return readConfig(configfilepath);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user