I have set up libsass as my scss preprocessor and it is capable of producing .map files. However, when I try accessing the resulting .map file, middleman produces an error.
The scss file name is main.scss
. Processing this, libsass produces main.css
and main.css.map
Accessing http://localhost:4567/css/main.css.map
produces an error:
ExecJS::RuntimeError at /css/main.css.map
CssSyntaxError: <css input>:3:2: Unknown word "version": 3, "file": "main.css", ^ "sources": [
Ruby c:/Ruby200/lib/ruby/gems/2.0.0/gems/execjs-2.3.0/lib/execjs/external_runtime.rb: in extract_result, line 65
Web GET localhost/css/main.css.map
Renaming the file to main.css.map.erb
does not change the error. Any ideas on how can I have middleman serve the file so that it is accessible at the http://localhost:4567/css/main.css.map
URL?
I need to have the file at this URL for Chrome DevTools to automagically recognize it and connect it to the css file.