What are the concept of working with webpack?

Study the development of conceptual and caught plugging. I immediately shoveled all that could find, even in English. Campaign create a sample application, the need arose to restore order in the project structure and code optimization, by eliminating the mass of connections JS, reps HTML and merge files. I climbed into webpack - liked. Studied configuration, everything seems good, BUT... there was a conceptual mess in my head, namely...
1. In webpage you can create a front in different variations, in addition to PHP. One can, however, be subverted somehow, and using BrowserSync or Laravel-mix to make something to process the PHP, but as I understand it, is a crutch.
2. In webpage to work with the database through NODE.JS but this is a separate issue for the projects, which are planned to be on VPS hosting (i.e. separate hemorrhagic creation and maintenance) or choice from a limited number of hosts that support it, plus an in-depth study NODE.JS.
3. You can includethe HTML using PUGа or LODASHа, etc., but there is also their syntaxes which should be used is not very great confidence in their necessity...
1. How is the work of bekenturov after you create the front webpage if backend is planned in PHP (somehow I can't believe all the right sharply jumped to node)? Even if they give neobychainyi build, they then have to shovel handles in one or two files? And if they give the source code, then build the project and why then webpack?
2. If the project is fully atbildes on HTML+JS+CSS as this and imprisoned webpack, it probably needs to be created some kind of API for bekenturov? If so, please point me in that thread where to see how it looks and then make the backend in PHP.
3. If there's a sane response to question 2, is there a way without a perverted solve the problem with includes HTML level, about how this is achieved using PHP?
4. As I learn, I would not want immediately to get into frameworks. Is it possible without them to effectively use webpack?
5. Can anyone have a word on working with PHP and databases in webpage and generally on the concepts of development processes?
Thanks in advance for any info!
April 19th 20 at 12:34
1 answer
April 19th 20 at 12:36
mixed men and horses.

developed get the source code and config webpage. start at webpac and get assembled code.

PHP and database webpak may, and can, but what for all can not imagine.
How else can you work with the database if no use Node.js? - elva68 commented on April 19th 20 at 12:39
@rico.Schaefer, why webpage to work with the database? - Schuyler.Ruecker31 commented on April 19th 20 at 12:42
Because the application must obtain and store the data somewhere... And JSON is not the best option, IMHO... - elva68 commented on April 19th 20 at 12:45
@rico.Schaefer, okay: what is the relationship between the application and vebacom?

you definitely have an idea of what webpack, and what is his purpose? - Schuyler.Ruecker31 commented on April 19th 20 at 12:48
Webpack collects project from a private entity, and projects are on PHP entirely... - elva68 commented on April 19th 20 at 12:51
In order to understand... so I wrote a layout, images, styles, etc. a User comes and wants to register. Fill in the fields and pressed the submit... What happens next? How and where does it all go... If the application is written in webpage? - elva68 commented on April 19th 20 at 12:54
@rico.Schaefer, pass a basic course on web development - Charlene.Muller19 commented on April 19th 20 at 12:57
@rico.Schaefer, for those who in an armored train: the applications are not written in webpage. - Schuyler.Ruecker31 commented on April 19th 20 at 13:00
@rico.Schaefer, once again, I suggest to see what webpack. - Schuyler.Ruecker31 commented on April 19th 20 at 13:03
If I create the configuration of the environment and the principles of processing of files, create the structure of these files and requirements for the final bundle and then in the process of writing code in DESIGN mode all the time in control of what I get the output as optimized code as there is a merge and relief code etc., so what is the process? Can the word "write" here and not ideal, but I think I made it quite clear izyasnyaetes. And then, isn't it simpler just to describe how this process takes place or point where to look at it. In fact, the essence of the matter lies in the description of the process of creating applications using webpac, in the sense of to the final stage... meaning the full stack is a process, not just "got the source, got the configs, collected and gave it somewhere further... - elva68 commented on April 19th 20 at 13:06
@Loren, If you can, please give an example of such a course, happy to learn... - elva68 commented on April 19th 20 at 13:09
@rico.Schaefer, webpak is bunddler. his task is to collect the bundles from source.
the functionality of the application is generally irrelevant.
and no matter of full-stack or not. - Schuyler.Ruecker31 commented on April 19th 20 at 13:12
@rico.Schaefer, if you know English the best:

  • pluralsight
  • lynda
  • udemy ( have to choose )
  • lararacts

that's webpage - Charlene.Muller19 commented on April 19th 20 at 13:15
@uriah.Metz, i.e. You first create the project (html, css, js, php(or something else)), and then it all ship in webpack and start to redo these to normal packaging? Do I understand correctly? Or do you just layout? - elva68 commented on April 19th 20 at 13:18
@Loren, two of these brands I as I thought I went through a lot of material. You'll be able to lead courses where we are talking about the participation of webpack in the development process... do Not work in webpack, namely its use in the development process... - elva68 commented on April 19th 20 at 13:21
@rico.Schaefer, in webpack it doesn't do anything, at all.

on normal, the original project is written using, for example, css preprocessors (like sass/less/etc) and js in separate files or separate components. and webpak just sausages, these files according to your configurations.

of course you may write immediately using CSS and js in one file, and then redo. but this is nonsense. - Schuyler.Ruecker31 commented on April 19th 20 at 13:24
Here in my project the number of scss files and js has exceeded reasonable limits. I configured webpack, was removed from the html, all links to js, sass handled all set up and... the class that God is with him that html is huge, next time will choose the templating engine. All bandits, minicircuits, mapped, etc. But it's time to mount the database. I have some beautiful bandling of dumplings and a pile of source code... dumplings I estestvennno nothing can not write. If you start to put PHP in the source code, webpak nichrome not bandlet if without crutches. So I ask how it's done in the world. Just do not say that the databases do not need a fucking... Everything everywhere is in the databases... - elva68 commented on April 19th 20 at 13:27
@rico.Schaefer, again you mixed soft and warm.
CSS/js/html living quietly and apart from PHP and databases.
if you are all mixed together, no webpak will not help.

Yes, all have been lying in databases and presented e.g. PHP or another language. what side does webpack need? - Schuyler.Ruecker31 commented on April 19th 20 at 13:30

Find more questions by tags Webpack