A
A
Alex_872019-10-21 12:57:29
webpack
Alex_87, 2019-10-21 12:57:29

How to import files correctly?

Good afternoon! There is a page:
5dad8103c5741740668208.png
I need to spread the selected blocks (header, aside, content, footer (it is not visible here)) to different pages and include them in one file. At the same time, if the header, aside, footer blocks are static, then the content block must change. Please help me to assemble the file correctly. How to do it right? ... Don't know if this matters but I'm using webpack

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2019-10-21
@Xuxicheta

You don't need a webpack, but a template engine.
Although you can use webpack, here, it looks like this is your case https://habr.com/en/post/350886/
But I'd rather not bother with such a construct, but would immediately take something like Gatsby or Nuxt.js ssr, in general, any server builder based on one of the popular frameworks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question