Large consumption of RAM by the HUGO framework

I faced the following problem. I have a big site on a framework (more than 10,000 pages). I decided to merge all CSS files into one and save them to the /styles/ folder. Now I have 10,000 CSS files in it.
This is good for speed, but in development HUGO uses 4 GB of RAM.

Is there any way I can disable such CSS compilation for development mode?

{{ $fileBundle := $fileBundle | resources.Concat (delimit (slice "/styles/css" (replace (.RelPermalink | relLangURL) "/" "-") "big-" .Lang ".css") "") | resources.Minify | resources.Fingerprint }}

Yes, use a condition like:

{{ if not .Site.IsServer }}
{{ end }}
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.