Reputation: 11210
I had added style.css.map
to my .gitignore
file thinking that this was some kind of internal file that was not needed for public consumption.
Now I'm seeing that when Chrome (not Firefox) loads my page, it is looking for style.css.map
and returning a 404. I'm not explicitly asking it to load that file, but it seems to be getting called automatically.
For further context, this is a Wordpress site and I am including the style.scss
file in the repo.
Upvotes: 11
Views: 5584
Reputation: 201
For each generated CSS file, Sass is generating a source map file (.map file) in addition to the compiled CSS. Each CSS file contains an annotation that specifies the URL of its source map file, embedded in a special comment on the last line of the file:
/*# sourceMappingURL= */
More info about sourcemaps: https://developer.chrome.com/devtools/docs/css-preprocessors
Upvotes: 9