title: Angular: Add hashing to the files in assets during build
body: <p>I have been looking up for the solution but nothing is useful is found yet.</p>
  <p><strong>Problem:</strong>
  I have an application in angular and I've added custom styles and scripts in my assets folder. The location of my assets folder is <strong>src-&gt;assets</strong>. I make the build of my project using <code>ng build --prod --output-hashing=all</code> but the problem with this command is that it only hashes components &amp; images used in my component but all the other files such as <strong>CSS, js files, and images</strong> that added by CSS are not hashed in the build.</p>
  <p>It is causing problem on the customer side as due to continuous releases, sometimes the browser doesn't refresh CSS, JS files for new deployed release and they complain that the styling and features are not working.</p>
  <p><strong>What I have tried:</strong>
  I tried many things like i mentioned above.</p>
  <ol>
  <li><code>ng build --prod</code></li>
  <li><code>output-hashing</code></li>
  </ol>
  <p>But none of them have been beneficial for me. All i want is to get my custom css and js files get hashed during build. Is there any solution?</p>
  <p><strong>PLEASE FEEL FREE TO ASK ANYTHING ELSE THAT IS REQUIRED OR I MISSED IN MY QUESTION</strong></p>
  <p>*<strong>EDIT:</strong> * Similar question have been asked <a href="https://stackoverflow.com/questions/50411349/angular-build-process-to-hash-the-file-name-of-asset-and-resource-folders">here</a> but not answered properly yet.</p>