This article describes the process of enabling bundling and minification;
https://docs.microsoft.com/en-us/aspnet/core/client-side/bundling-and-minification
The basic steps are;
- Open the bundleconfig.json file, you will get prompted to download the tooling. Do that.
- Right click on bundleconfig.json, select ‘Bundler and Minifier’ then select ‘Update Bundles’. You’ll need to do that each time you make a change that you want to deploy.
- Optionally select ‘Enable bundle on build…’ if you want it to re-build the css and js bundles on every build.