A
A
Alexey Segodin2019-11-06 15:32:50
JavaScript
Alexey Segodin, 2019-11-06 15:32:50

How to run webpack-dev-server on nodejs and express?

I'm only interested in an example that uses not index.html as a start file, but some kind of template engine. For example, EJS.
I would be very grateful for specific working examples, or links to them, or to tutorials.
PS A big request is not to write answers in the spirit of "google" or "look at Youtube". I am writing here precisely because I have been googling to no avail for half a day. Therefore, I will be grateful for a detailed answer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sadov, 2019-11-06
@Alexsandrrh

Hey! For Node.js + Express, there is webpack-dev-middleware and webpack-hot-middleware. They are made so that the server is Express, not webpack-dev-server.
https://madole.github.io/blog/2015/08/26/setting-u...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question