Django-Cookiecutter: Why is dist listed in .gitignore?

153 views Asked by At

A fundamental question about the .gitignore list that's auto generated by django-cookiecutter. I suppose this it's best practice to ignore dist.

I am not a front-end/UI master but many javascript packages come with a dist folder which I just copy into the static folder. Is that a bad idea? Is there something I should know about files in a dist folder?

1

There are 1 answers

2
Jure C. On BEST ANSWER

The idea behind this is that you don't commit compiled resources into git as they should be generated at deploy/build time.