fix issue in which some files were not triggered change event
This commit is contained in:
parent
9df0ee9554
commit
ed530e8511
|
@ -43,7 +43,9 @@ class Watch {
|
|||
|
||||
// workaround for imports issue
|
||||
// so embark reacts to changes made in imported js files
|
||||
if ((!Array.isArray(files) || files.length === 1)) {
|
||||
if (!Array.isArray(files)) {
|
||||
fileGlob = path.join(path.dirname(files), '**', '*.*');
|
||||
} else if (files.length === 1) {
|
||||
fileGlob = path.join(path.dirname(files[0]), '**', '*.*');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue