During gulp-uglify task, SSI (server side includes) declarations are removed, maybe because uglify() removes invalid blocks of non-javascript code.
i.e.:
mymodule-source.js
"use strict";
<!--# include file="/ssi/config.js" -->
window.mymodule = function(mymodule) {};
After uglify() call on gulp pipe, it compress file to the following:
mymodule-minified.js
"use strict";window.mymodule=function(e){};
Expected result for app health, is the following result:
mymodule-expected.js
"use strict";<!--# include file="/ssi/config.js" -->window.mymodule=function(e){};
There is some kind of filter to declare to avoid SSI declarations being purged from final minified/uglified file?
By example, some kind of filter over regex ]+>