grunt-postcss icon indicating copy to clipboard operation
grunt-postcss copied to clipboard

Error: Failed to parse SourceMap in Chrome console

Open toptalo opened this issue 8 years ago • 0 comments

Get an error: "Failed to parse SourceMap" in Chrome console if option sourcesContent set to true

Run grunt-postcss plugin after grunt-sass. if simple run grunt sass task SourceMap parsed correctly.

Also find this somehow related info in Stack Overflow: http://stackoverflow.com/questions/36133715/google-chrome-failed-parsing-sourcemap-css-map-web-essential

Problem is that WebEssentials saves files in UTF8 with BOM, but Chrome is not able to open these files as .map files. As a temporary fix, you can go to your .map file in Visual Studio and save it as a Unicode (UTF-8 without signature) or US-ASCII using

toptalo avatar Jun 30 '16 13:06 toptalo