diff --git a/tasks/ts.ts b/tasks/ts.ts index d2304386..b0580743 100644 --- a/tasks/ts.ts +++ b/tasks/ts.ts @@ -430,23 +430,23 @@ const pluginFn = function (grunt: IGrunt) { // local event to handle file event function handleFileEvent(filepath: string, displaystr: string, addedOrChanged: boolean = false) { - + const acceptedExtentions = ['.ts', '.tsx', '.js', '.jsx', '.html']; - + acceptedExtentions.forEach( (extension) => { - + // If extension is accepted and was not just run if (utils.endsWith(filepath.toLowerCase(), extension) && (new Date().getTime() - lastCompile) > 100){ - + // Log and run the debounced version. grunt.log.writeln((displaystr + ' >>' + filepath).yellow); filterFilesTransformAndCompile(); - + return; } - + // Uncomment for debugging which files were ignored // else if ((new Date().getTime() - lastCompile) <= 100){ // grunt.log.writeln((' ///' + ' >>' + filepath).grey);