currently I am building a project with hugo, but I wandted to optimise the performance of my project by adding a budget.json file into my build.
But does anyone know the right place to place the budget.json file? the current location of the budget.json file is the static folder inside my theme folder.
Seeing that lighthouse in my chrome brouwser is not picking up my budget file, I know that this is not the correct place, so if anyone can share a link to any resource or know the right locattion for the budget I would really love your feedback.
I don’t know of Chrome Browser doing budgets, only the command line as @nfriedli described works with budget files. I would put it into the root directory of your repository. I would also NOT make it part of the build process, but add it to some test setup.
If you run hugo server then everything is happening in RAM and Chrome won’t find your budget file. It might work if you run hugo and then have the budget file in static, so it ends up in your sites root.