I noticed that my site build on GitHub is not creating the css.map file (the dev tools console says the file is missing and I confirmed it is not in GitHub repository).
When I build the site locally, the css.map file gets created in the public css folder with my minified css.
I am using two repositories on GitHub to build my site (one for the source code that pushes the static files to another repository – using a “peaceiris/actions-hugo@v2” based workflow).
I am new to Hugo (started earlier this year) and have tried to find other documentation to explain what is happening, but haven’t figured it out yet. I assume there is something obvious and small that I am missing.
Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.
If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.