11

I like webpack, but maybe not anymore after today.

Was working on my side project with already configured webpack and after some time I realised somethong is wrong with my styles, but it was not before.

Then I realised, that Chrome won't load CSS at all. I checked my source, but it seems to be perfectly fine. No errors while building. CSS is even included in the bundle generated...WHAT THE FUCK?

Comments
  • 2
    Silly idea ... Maybe Google has cached the stylesheet? I use Website Developer Toolbar, clear cache, restart browser and then try.

    Google chrome cache can be an absolute pain! It may be the source of your issues or maybe you are not targeting the elements with enough weighting?

    Ben
  • 1
    @laceytech No, Chrome does not even show my styles in console...it is strange
  • 1
    UPDATE

    Looks like Chrome chose its own path again. The element without applied CSS is dynamically created with JS and somehow styles are applied only when I change element withing dev tools. Never happened anything like this before to me...
  • 1
    FINAL UPDATE

    I had some spare time so I looked at my problem and...the lesson is...never use DOMParser class to parse HTML. Never...
  • 0
    @webpack sorry for blaming you in the first place :D
Add Comment