R
R
Roman Rakzin2017-02-17 08:28:09
ASP.NET
Roman Rakzin, 2017-02-17 08:28:09

How to combine several files into one in ASP NET Razor or gulp.js and then load the generated file?

How to generate html only once in the Razor template engine on ASP NET MVC Core and then issue it every time?
You just need to collect html files into one big one and minimize it.
In Razor I write:
@Html.Partial("~/Views/Main/Templates/About.cshtml")
but every request does an action and I would like to build the file once.
Or how to do it with gulp.js once and then output this file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan, 2017-02-17
@LiguidCool

Read about webpack.

K
Konstantin Kitmanov, 2017-02-17
@k12th

Well, you have the correct tag, gulp.js. Read the docks - they are shit, but after them you will at least have the right questions. In addition, they have typical examples.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question