title: How can i manage frontend assets with laravel mix and git?
body: <p>I'm using Mix (this applies to Elixir as well i guess) to manage my frontend assets. I have Mix configured to version files in production but not in dev. As such, when i update assets, i get updated <code>app.js</code> and <code>app.css</code> files in dev and <code>app.{hash}.js</code> and <code>app.{hash}.css</code> files in production.</p>
  
  <p>What is your advice on how to leverage this with version control?</p>
  
  <ol>
  <li>Put the files in version control? If so how do i manage the constant changes during development? Keep adding new hashed files? Do i leave app.js and app.css on the production server?</li>
  <li><code>.gitignore</code> the js and css files and run npm on the production server to compile the assets locally?</li>
  <li>Some other solution?</li>
  </ol>
  
  <p>What are your thoughts on this?</p>
  
  <p>Thanks in advance.</p>