After compiling and generating templates.js, how to include that in index.htm or in the next build


We have generated templates.js after making changes in .htm files. But after building and installing new server exe, the new templates.js is not being included in index.htm. It has old compressed / minified template js only. How can we fix that?