the thing is that I'm trying to get CSS mapping working with my Compass project in Chrome (v38, OS X) so It reloads my CSS without the need to reload page.
I followed this https://developer.chrome.com/devtools/docs/css-preprocessors and also this http://www.sitepoint.com/using-source-maps-debug-sass-chrome/
I have fully working Compass project and I'm compiling using compass watch
.
Into Config.rb
I have added sourcemap = true
and .map
file has been successfully created.
When I load my site, I can see .map
file loaded in Network tab in Console (status code 200)
Enable CSS source maps
and Auto-reload generated CSS
is also on in Chrome's Settings.
But when I recompile css changes don't appear in DevTools nor in page. However when I reopen DevTools I can see changes in Styles tab but they're not applied into page.
.map
file is compiled and loaded through my HTTP server with 200 OK response.scss
references in Style inspector eg. body {...} style.scss:18
so Chrome communicated with my .map
fileAny ideas what might be the issue here? Thanks
You've missed a few steps :
Chrome < 53
Chrome >= 53
Now, you can change your Sass file in your favorite editor (you then need to watch it, or relaunch sass
command), or directly in Chrome Devtools: select your file, edit it and save it.