Base solution for your next web application
Open Closed

styles.5439b.... is missing in V.7 #7342


User avatar
0
XugoWebTeam created

Hi,

We're in the process of upgrading to aspnetzero Version 7 from 6 (point something) . (Angular). I've noticed that the styles.css (the one with the long string of numbers after 'styles' ) is missing.

After checking the demo version of dotnetzero, it seems that it is supposed to be there

Can anyone explain what would cause this?


7 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @xugowebteam

    Normally this shouldn't be a problem. Did you update your index.html as well ?

  • User Avatar
    0
    XugoWebTeam created

    Hi @ismcagdas,

    No, what change is required to the index.html?

    Looking at the 6.* version, theres is no references to any CSS files anyway. Those references get injected via JS don't they? (as opposed to being coded directly into the index file itself)

    I assumed that the long number string in the file name was soemthing to do with either: the angilar-cli or webpack?

  • User Avatar
    0
    alper created
    Support Team

    it's in https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/angular.json

  • User Avatar
    0
    XugoWebTeam created

    Hi @alper,

    Yes thats right. From what I can tell... the styles listed in the styles array ( in angular.json) get compiled into a single css file called styles.(randomstring).css

    And (slightly confusingly), the final item in the above mentioend array, is a file callled "src/styles.css"

    "styles": [
                  "node_modules/animate.css/animate.min.css",
                  "node_modules/quill/dist/quill.core.css",
                   ......
                  "src/assets/ngx-bootstrap/bs-datepicker.css",
                  "src/assets/metronic/vendors/global/vendors.bundle.css",
                  "src/app/shared/core.less",
                  "src/app/shared/layout/layout.less",
                  "src/styles.css"
                ]
    

    It seems that soemthing has happened in our v.7 to cause this styles.(randomstring).css to be longer served.

  • User Avatar
    0
    alper created
    Support Team

    hi

    see our demo... there's also styles.***.css and style.bundle.css.

    http://alper.demo.aspnetzero.com admin:123456

  • User Avatar
    0
    XugoWebTeam created

    Hi @alper,

    Yes I'm aware of styles.bundle.css . (thats different - thats only Metronic isn't it?)

    But in addition there is also src/style.css which it seems is one of many CSS files that gets bundled into the much larger file: styles.***.css

    As shown in my earlier screenshot, the files that makeup styles.***.css are listed in angular.json

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Have you compared your updated project with the latest version of AspNet Zero. As I can see, this file still served for our demo app;