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
......@@ -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");
}
});
};
Markdown is supported
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