Static files in phoenix

Hi all
What is the difference between static files of those two folders:

Thanks

1 Like

When you write some javascript code, or css, or want to use image, you dump it into web/static. These files will get processed by Phoenix/Brunch and related tools, and the output will be saved in priv/static.

ES6 will get compiled to plain old JavaScript, images can be processed too with some effort to say reduce their size, and css get processed as well.

Rule of thumb is: edit stuff in web, not priv.

3 Likes

Thanks so much.

1 Like