D
D
deniskins232018-07-27 16:55:25
gulp.js
deniskins23, 2018-07-27 16:55:25

How to implement gulp assembly so that html files are collected in different folders?

Tell me how to build the necessary assembly gulp task: there are folders with pug files -
1.pages (the pages are in it)
2.blocks (the blocks that make up the pages are in it).
I know and understand how to implement a task so that the pages are compiled into the root of the build folder. But it is necessary that only index.html is compiled to the root, and the rest of the pages (if any) are compiled in the same way with the name index. But in the folders corresponding to their names in the root directory, so that in production, when going to these pages, the address bar does not contain the file name, but just a specific directory. And in general, it seems to me that this will be a more correct structure of the finished project.

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