Building our src/Components projects will produce minified.js files under src/Components/Web.JS/dist/Release. In order to avoid constant merge conflicts, and to avoid having to restore NPM components over the network during offline source-build, we keep the latest versions of those files in a submodule repo, https://github.com/dotnet/blazorminifiedjs. If you are prepping a PR that is going to change the contents of those files, please follow the steps in this doc.
- Build the node components of the repo
- Running
npm run buildfrom the repo root should be sufficient, assuming you have already installed the prereqs listed in our Building from source doc.
- Running
- In a separate folder, clone the BlazorMinifiedJs repo.
- Check out a new branch in your clone, based off of
main. - Replace the files in
BlazorMinifiedJs/srcwith the minified .js files you just generated in aspnetcore (these can be found ataspnetcore/src/Components/Web.JS/dist/Release). - Push your
BlazorMinifiedJsbranch and open a PR in that repo. - Once that PR has been merged, return to your aspnetcore PR, navigate to
src/submodules/BlazorMinifiedJs, and checkout the commit you just pushed. - Push the submodule update to your aspnetcore PR.
Alternatively, you can find the generated .js files in the artifacts of your PR build, under the artifact named "Minified_JS_Files". This may be more reliable than building the node components locally.
Following these steps should remediate any build errors related to BlazorMinifiedJs in your PR.