Webpack folder structure

84 Views Asked by At

I'm trying to learn Webpack, so that I can implement it with my html project. I've some dumb questions but I'm very confused about them. I understand the work on scss, images etc etc. The problem is some developers are putting all the html files in the src folder and then pushing it to the dist folder with the build command(html-webpack-plugin). And some are manually keeping all html files in the dist folder rather than src folder. Can you please explain which is the best practice among them?

  1. Where should I keep my html files? In src folder or dist folder?

  2. What is the best practice for folder structure when I'm working with html and webpack?

  3. If any backend developer work with my project then which folder he'll work on, src or dist?

My Project Structure

root enter image description here

src folder enter image description here

dist folder enter image description here

https://webpack.js.org/guides/asset-management/ enter image description here

Thanks in advance Have a great day!

0

There are 0 best solutions below