From ef1a0ee378230b243a053cffdabc5e3ce6e37b09 Mon Sep 17 00:00:00 2001 From: Tim Lancina Date: Fri, 11 Sep 2015 09:40:30 -0500 Subject: [PATCH] fix(watch): fix cleanup on delete --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index c3458cd58d..f8051dd872 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -81,7 +81,7 @@ gulp.task('watch', function(done) { function(file) { if (file.event === "unlink") { var basePath = file.base.substring(0, file.base.lastIndexOf("ionic/")); - var relPath = file.history[0].replace(base, "").replace(".ts", ".js"); + var relPath = file.history[0].replace(basePath, "").replace(".ts", ".js"); var es6Path = basePath + "dist/src/es6/" + relPath; var commonPath = basePath + "dist/src/es5/common/" + relPath;