Page 1 of 1

Source map error

Posted: Thu Sep 05, 2019 3:59 pm
by pault
In the Firefox console, I get the following error when building from WebHelp Responsive, even when using an unaltered DITA Map WebHelp Responsive scenario:

Source map error: TypeError: NetworkError when attempting to fetch resource.
Resource URL: file:///Users/pault/github/dse-docs/out/webhelp-responsive/oxygen-webhelp/lib/bootstrap/css/bootstrap.min.css
Source Map URL: bootstrap.min.css.map

I'm building from MacOS Mojave 10.14.6.

Firefox seems to load the CSS but I thought I'd check.

Re: Source map error

Posted: Fri Sep 06, 2019 10:51 am
by bogdan_cercelaru
Hello,

.map files allow a browser to download a full version of the minified CSS. It is really for debugging purposes.
In effect, the .map missing isn't a problem. You only know it is missing, as the browser has had its Developer tools opened, detected a minified file and is just informing you that the CSS debugging won't be as good as it could be.
In Firefox, you could press F1 in the Developer Tools and uncheck the "Enable Source Maps" in the "Advanced settings" section to prevent this warning.

Regards,
Bogdan