fix(watch): fix cleanup on delete

This commit is contained in:
Tim Lancina
2015-09-11 09:40:30 -05:00
parent 78cd5d5c39
commit ef1a0ee378

View File

@ -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;