Commit 6eaa470d authored by Cottser's avatar Cottser

Issue #2902417 by drpal: Do not attempt to unlink not present *.js.map when watching JavaScript

parent 270628aa
......@@ -39,8 +39,5 @@ watcher
fs.stat(`${fileName}.js`, () => {
fs.unlink(`${fileName}.js`, unlinkHandler);
});
fs.stat(`${fileName}.js.map`, () => {
fs.unlink(`${fileName}.js.map`, unlinkHandler);
});
})
.on('ready', () => log(`Watching '${fileMatch}' for changes.`));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment