There are many separate, almost unique pages of the site with its file structure and assembly, but they use a header template, which lies in a separate folder and imported into each page.

Here the template caps changed and you have to run each assembly manually.

Tell me how to organize the assembly of all at once? But not by working on a separate page, but by necessity. In order not to produce as many collectors.

Корневая папка/ --Templates --AllPages/ тут много папок page --Page/ --build/ --index.html --css --js --src/ --index.html --sass --js 

    1 answer 1

    You can use require where to write the necessary paths for certain assemblies, and create a universal template that will analyze the "header" and push the paths along the necessary tasks.