carteb/carte-blanche

App CSS get loaded inside carte-blanche

FezVrasta opened this issue · 4 comments

I don't know if it's an expected behavior, but in my app.js I import some css files that are loaded in the global scope (styling for the HTML tags, body, etc).

When I open carte blanche and I visit the home page, everything is okay. When I open one of the components pages, the document.styl get loaded globally and changes the style of the whole Carte Blanche page.

To note that it doesn't happen with all the files I load, for example, only document.styl get loaded, even if I load at the exact same way even other two styl files.
I would expect those files to be loaded inside the iframes, not inside the top page.

I don't understand why this is happening tho.

That's definitely a bug, those styles shouldn't be injected into the main CarteBlanche. Do you have some sample code by chance? How are you importing the files?

I'm importing them with import './styles/document.styl

No code to show sorry :(

Alright, will try to replicate!

@FezVrasta how does your webpack config look like to load styl files?