Open Psvensso opened 10 years ago
just wanted to open this issue to check if it´s a feature/bug or just expected behavior.
:bug:
Just because I didn't know better when I started (didn't have a watch fast compile pipeline initially) and haven't used HTML templates for quite a while (moved to angular template cache).
Same issues existed for things I did use e.g. reference.ts
and transformers
so they got patched. e.g.
// Modify the orig contents to put in our contents only if changed
// Also Return whether the file was changed
if (updatedFileContents !== referenceContents) {
grunt.file.write(referenceFile, updatedFileContents);
return true;
}
var transformedContent = outputLines.join(os.EOL);
if (transformedContent !== contents) {
grunt.file.write(fileToProcess, transformedContent);
}
i can have a go at a pull request
Whenever you have time :+1:
Hey guys, just wanted to open this issue to check if it´s a feature/bug or just expected behavior.
I was using grunt-contrib-watch to watch and compile (i have multiple steps so used the contrib watch instead of buildt in). Once i changed a HTML file i could see from the contrib-watch verbose logging that all my HTML partials was being triggered for change. Meaning that grunt-ts recompiles all HTML partials on each trip not just the ones being changed.
I can confirm this by filestructures changed time that all partials have been re-created.
This seems like a terrible waste, i can have a go at a pull request but wanted to run it through here first and see what you guys think.