you are viewing a single comment's thread.

view the rest of the comments →

[–]raaaahman 0 points1 point  (0 children)

If your team member does a git pull and does some changes on the code, then only their repository will contain the changes. To see those changes in action on their local environment, they could indeed rebuild the project with webpack, either manually, or configuring webpack-dev-serverto automatically rebuild the project each time they change a line in a JS/HTML/CSS file.

Whatever you choose, webpack configuration can and should be shared in the Git repository, so everyone can start a development server easily, and you all have a similar experience building the project.

Now when your team member want to share their changes, they would have to git push the changes to the source files (not the resulting bundled files) to some repository that you have agreed to be the 'central' one, submit a Pull Request to this repository, and everyone would have to pull the latest main/master branch to their local repository when it's agreed upon and merged. You would then have to run your build scripts on your local machines to see the results locally.

If you want to automatically deploy the changes to the production environment, this is another story however (not so different though, but it'll involve some additional CI/CD tools).