File Structure

Quick question for you all, is there a best practices for where to keep the assets folder in a project? I'm torn between putting it in /src or /public. Thanks!
2 Replies
13eck
13eck16mo ago
If I'm remembering correctly, /src is the folder you put code that is to be modified and then sent to /dist. /public, on the other hand, is copied with no modifications. With that being said, use /public if there is nothing to change (fonts, images, etc) while modified files go into /src (JS/CSS files are minified, markdown files are combined into HTML files, etc)
elbi3
elbi3OP16mo ago
thank you this is very helpful 🙏
Want results from more Discord servers?
Add your server