Commit 9b473fb9 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Corrige le bug des chemins des fichiers du watcher.

parent bd577002
No related merge requests found
Showing with 4 additions and 1 deletion
+4 -1
...@@ -143,7 +143,10 @@ module.exports = grunt => { ...@@ -143,7 +143,10 @@ module.exports = grunt => {
grunt.event.removeAllListeners("chokidar"); grunt.event.removeAllListeners("chokidar");
grunt.event.on("chokidar", function(_, filepath, target) { grunt.event.on("chokidar", function(_, filepath, target) {
if (target === "presentations") { if (target === "presentations") {
enqueueBuilds([filepath.substr(4)], "dev"); if (filepath.startsWith("src/")) {
filepath = filepath.substr(4);
}
enqueueBuilds([filepath], "dev");
} }
}); });
}; };
Supports Markdown
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