-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS Source maps broken #79
Comments
i wonder if this is also related to the Flash Of Unstyled Content that happens on refresh. One thing I've found in my research for true isomorphic Local CSS, is that it seems like there is a different loader call for server vs. client. check out https://github.com/jarsbe/book-shelf/tree/isomorphic/webpack and see the difference between server and browser config. specifically the modules. |
yeah i think thats got something to do with it: https://github.com/webpack/css-loader#local-scope
|
I don't know how the others see this - but for me this is a dealbreaker. Would it be possible to revert this repo to a state where css source maps still worked? |
That was before the local styles worked, and all the classNames were global ( |
yeah looks like the solution has to do with having a prerender/server bundle and a clientside bundle: webpack-contrib/css-loader#59 (comment) i don't know webpack well enough yet to suggest a good way to implement this in the current repo. |
Good News Everyone! sass-loader 2.0 just came out 30 minutes ago, and I've been testing it, and so far, it has fixed the source map problem! |
Amazing! |
yeah, I want to do a little more testing, but if everything looks good, I'll do a PR |
hmm, well, Without using ExtractTextPlugin, like the repo does in prod, i'm not sure if source maps will work, but I'll keep looking into it. Though you might lose the benefit of hot reloading? Not sure. prod build seems to work though |
Thats a great first step in the right direction! /*# sourceMappingURL=src/components/InfoBar.scss.map */ |
This is brilliant news! |
i almost got it working on dev, paths are a little weird though, i think i can pretty it up a bit. hopefully a PR by end of day |
got a PR that should hopefully close this. works on both PRD and DEV in my Windows 7 environment. PRD source maps are much cleaner when traversing the directories in dev tools. DEV source maps are there, and you can anvigate to them, but they are in like |
also, good news is that this is working with Hot Reloading in DEV too, so I can change the scss file in my IDE and see it move without refreshing in the browser. |
Sounds amazing, looking forward to testing it! Thanks for the work you've put in! |
Would there be any way to make this work with the bootstrap css as well? It's useful sometimes to find out which variables bootstrap uses for a given class. |
See #48 for reference.
The text was updated successfully, but these errors were encountered: