A
A
Anatoly Salamatin2018-01-28 13:30:26
Pug
Anatoly Salamatin, 2018-01-28 13:30:26

How to speed up pug build?

Hello. Help me please. How to speed up Pug build?
With a large number of files, the build can take up to 50 seconds
https://github.com/FARCER/gulp4start
If you don't have one, please post links to your builds. Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valery Lyubimov, 2018-01-29
@vUdav

Most likely the problem is due to the fact that when you change one file, all the other files are completely assembled, although they have not changed, it takes much more time and grows as the number of files in the project increases.
I have tried various solutions to this problem in the past, and gulp-cached turned out to be the most successful . It is easy to connect, suitable for any tasks in the galpa, and most importantly, it really works (unlike many other similar ones)!
If you can look at my galpa starter pack , everything is there. There is also a light version of this starter pack , it is somewhat truncated, it may be easier to figure it out, this plugin is also there.

D
Dima Polos, 2018-01-28
@dimovich85

https://m.youtube.com/watch?t=16s&v=uYZPNrT-e-8
https://m.youtube.com/watch?t=3s&v=jocvHauHcA4
I watched it myself recently, I think it will help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question