Large html generated files

I trying to use hugo some years ago, now I’m using v0.121.2

I notice the generated html files has all css and js bundled on each html, instead of link and relative include external css and js files.

Eg: my index.html and 404.html are 1MB.

How can I create a light version of html files that will link to resources instead of include them on each html file?

can you share the repository or the code?

This behaviour is controlled by the theme you are using.

There might be a setting to control this in the theme, you can override the template files and change it or use another theme.

With a link to your repo so we can see the code we can give more detailed suggestions.

Thanks for your help, I found where the Theme is doing it and I was able to fix it.

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