mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
fix(watch): fix cleanup on delete
This commit is contained in:
@ -81,7 +81,7 @@ gulp.task('watch', function(done) {
|
|||||||
function(file) {
|
function(file) {
|
||||||
if (file.event === "unlink") {
|
if (file.event === "unlink") {
|
||||||
var basePath = file.base.substring(0, file.base.lastIndexOf("ionic/"));
|
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 es6Path = basePath + "dist/src/es6/" + relPath;
|
||||||
var commonPath = basePath + "dist/src/es5/common/" + relPath;
|
var commonPath = basePath + "dist/src/es5/common/" + relPath;
|
||||||
|
Reference in New Issue
Block a user