F
F
Fengol2018-08-14 22:36:49
JavaScript
Fengol, 2018-08-14 22:36:49

How to collect a large number of static .html files?

There are hundreds of .html files that represent pieces of content, each of which needs to be wrapped in a template .html file and saved to the file system with the content file name.
The project uses webpack4.
From thoughts only with the help of nodejs, create a lot of template files, in which, with the help of require, include files with content. And also using nodejs to parse file names with content and also using nodejs to add them to the webpack config in entry. But maybe there is another way, simpler and ready?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2018-08-14
@Fengol

I'm not sure that I understood the task, but in order to work comfortably with static sites and not ... there are static site generators. I'm actively using Jekyll. Not without nuances and a ton of minuses, for example Liquid is otherwise all zbs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question