From 9b473fb943b1837e456c9bbeac60007079aa220d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr> Date: Tue, 3 Mar 2020 15:27:31 +0100 Subject: [PATCH] Corrige le bug des chemins des fichiers du watcher. --- Gruntfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 83c5357..38a8c88 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -143,7 +143,10 @@ module.exports = grunt => { grunt.event.removeAllListeners("chokidar"); grunt.event.on("chokidar", function(_, filepath, target) { if (target === "presentations") { - enqueueBuilds([filepath.substr(4)], "dev"); + if (filepath.startsWith("src/")) { + filepath = filepath.substr(4); + } + enqueueBuilds([filepath], "dev"); } }); }; -- GitLab