I was running ASP.NET Core and Angular v13.3, and I just upgraded it to v13.4.0. Everything works fine, but when I execute the {your-app-name}.Web.Host project it brings me to https://localhost:44301/Ui/Login which shows the login page with no CSS applied.
The console displays the following error:
Refused to apply style from 'https://localhost:44301/view-resources/Views/Ui/Login.min.css' because its MIME type ('') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
On the /ui/views/login.cshtml page if I change the CSS link metatag from "abp-href" to href it requests the normal, 'login.css' file and it works, however, the abp-href tag code processes the include and converts it to 'login.min.css' which does not exist.
How can I get the project to create the minimized files?
Note: this is different than creating the bundles in the angular app.
Thank you.
2 Answer(s)
-
0
Hi gerryp
We are now minifying style files in the *Web.Host project. When you open the path to this project in the terminal, you will minify the relevant files using the
yarn create-bundles
command. -
0
Thank you. That worked!