Answer the question
In order to leave comments, you need to log in
How to run html pages in localhost via npm start?
I have a few rendered pages, and I want the npm start command to output the pages to localhost:8080. It is also necessary that all pages are rendered in js through window.renderTemplate, and the pages should be displayed in accordance with the alias. How can this task be completed? Perhaps the question is stupid, but I did not find a specific answer for
an example of rendering:
window.renderTemplate = function(alias, data) {
// ...
return '<HTML-разметка отдельного слайда в виде строки>';
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question