In certain cases, not studied exactly, but happens quite often, plugin strips last include block.
Guess, this happens when file contains more than one include blocks and plugin does a lot of changes.
Source file contains
<!-- build:js({.tmp,app}) /scripts/scripts.js -->
<!-- include: "type": "js", "files": "scripts/*.js" -->
<!-- /include -->
<!-- include: "type": "js", "files": "scripts/service/**/*.js" -->
<!-- /include -->
<!-- include: "type": "js", "files": "scripts/directives/**/*.js" -->
<!-- /include -->
<!-- include: "type": "js", "files": "scripts/controllers/**/*.js" -->
<!-- /include -->
<!-- include: "type": "js", "files": "modules/**/*.js" -->
<!-- /include -->
<!-- endbuild -->
Sometimes the very last block is getting rewritten as follows
<!-- /include -->
<script src="modules/core/core.js"></script>
<script src="modules/core/loader.js"></script>
<script src="modules/core/core.js"></script>
<script src="modules/core/loader.js"></script>
<!-- /include -->
I'll take a closer look in which case this happens, but it surely happens quite often, once in 3-4 days at least.
In certain cases, not studied exactly, but happens quite often, plugin strips last include block.
Guess, this happens when file contains more than one include blocks and plugin does a lot of changes.
Source file contains
Sometimes the very last block is getting rewritten as follows
I'll take a closer look in which case this happens, but it surely happens quite often, once in 3-4 days at least.