mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-17 09:46:37 +00:00
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
|
// workaround for imports issue
|
||||||
// so embark reacts to changes made in imported js files
|
// 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]), '**', '*.*');
|
fileGlob = path.join(path.dirname(files[0]), '**', '*.*');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user