diff --git a/Gruntfile.js b/Gruntfile.js index 83c5357d471ef01d0f4ba66891547abb9e186e1b..38a8c88d45fc5fa7176e3d888d6c801a59b1ba58 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"); } }); };