A
A
Anyuta2018-12-23 19:54:07
Layout
Anyuta, 2018-12-23 19:54:07

Can webpack make several files from one file by decomposing them into the appropriate folders? If not, what is the alternative?

I have html, css, js files, all in one instance. I need webpack (or any other program, but preferably webpack) to cut out a certain section of code, which will be highlighted with a special comment. Those. the beginning and end of the code will be marked, which must be placed in a separate file and put in a separate folder with the name that is already written in the comment (in the place where the code begins).
Thus, at the output, I want to get a lot of folders with names that are written in the comments, and in each folder there will be one main.js, index.html, style.css.

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