Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

public site style issue #7559


User avatar
0
cictan created

I've just set up the public site, however, it has no style, I checked the source code and found this: however, I don't see these files. I didn't see errors when I built the project. Can anyone help me?


2 Answer(s)
  • User Avatar
    1
    dexmox created

    I had this problem when i first started, it was because i didnt run yarn / npm bundle. After getting the dependencies and building the solution it worked and the styles appeared.

    Hope this helps, reference link below.

    https://docs.aspnetzero.com/documents/aspnet-core-mvc/latest/Getting-Started-Core

    https://docs.aspnetzero.com/documents/aspnet-core-mvc/latest/Public-Website

    for public site, in this link you can also see you need to run the bundles

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks a lot @dexmox :).

    @cictan, basically you need to first run "yarn" command and then "npm run build" in the root directory of your MVC app and then publish your app agian.

    See https://docs.aspnetzero.com/documents/aspnet-core-mvc/latest/Infrastructure-Core-Mvc-Bundling-Minifying-Compiling