V
V
Vladimir2019-12-28 15:20:04
JavaScript
Vladimir, 2019-12-28 15:20:04

How to build a project with my hierarchy using webpack?

Good afternoon. Please tell me how to build the project correctly? It works on a node.
Home dir:
app.js,package.json,node_modules,images,sessions,webpack.config.js
images - pictures / sessions - I store session keys express
Static dir(www):
I won't list everything, there are 14 pages, js, css
The documentation says it will pull up all the dependencies by itself, I specified the path in the ./www/js/index.js config and assumed that it would act something like this: it runs through all folders, collects files and glues them, option 2 for me you need to import all the files into one and it will collect one file for me, but how to deal with .html in this case, thank you very much.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question