Search code examples
javascriptcsslaravelworkflowlaravel-mix

Should I commit css and js generated by laravel mix?


I started using laravel mix, and there's huge files generated by it. Should I commit those to the repo? What are the advantages and cons of both ways?


Solution

  • You should not add anything to the repo that can be generated at any time, for example after pull. A clear well known example that can be added to your predicament, is node_modules. They can always be generated by npm install, therefore it should always be added to .gitignore