S
S
semen-kyiv2019-03-16 19:56:20
JavaScript
semen-kyiv, 2019-03-16 19:56:20

What to do after building Webpack?

Hello!
I am mastering Front-End.
Mastered HTML / CSS / JS / React / Node - a little.
Got to webpack. I want to make my test project step by step. Since I have no experience in production, it's a mess in my head. Please help me figure it out.
1. I created a rap on git.
2. Filed layout in HTML/CSS/JS
3. Pushed files to git.
---- now I want to build a bundle ----
4. Installed webpack globally
npm -g install webpack
4.1. Installed webpack-cli globally
npm -g install webpack-cli
5. I'm building. The disc / build.js file appears in which the js code.
Questions:
- Before you push it, do you need to add something to the gitignor manually?
- What do they usually do after that? Is this the stage at which the front-end developer submits the project to the customer?
Sorry if someone was dumbfounded by the stupidity of the questions, it just so happened that there was nowhere to wait for help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Stolyarov, 2019-03-16
@semen-kyiv


4. Installed webpack globally
it is better to install locally in the project
- Before you push it, do you need to add something to the gitignor with your hands?
the entire dist should be ignored, it is better not to keep such files in the repository (libraries can be an exception, and this is not the best practice)
- What do they usually do after that? Is this the stage at which the front-end developer submits the project to the customer?
is deployed to the server. There are a lot of options, but the main task is to upload files from dist to the server into a specific directory (/usr/nginx/html for example for nginx), from which static is served

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question