Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

Commit f188b4d

Browse files
committed
disable css source maps
1 parent d617453 commit f188b4d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

css-plugin-base-builder.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,11 @@ exports.bundle = function(loads, compileOpts, outputOpts) {
9595
fs.writeFileSync(outFile, cssOutput);
9696
}
9797
else {
98-
if (outputOpts.sourceMaps) {
99-
cssOutput += '/*# sourceMappingURL=data:application/json;base64,' + new Buffer(result.map.toString()).toString('base64') + '*/';
100-
}
98+
// disabled pending https://bugs.chromium.org/p/chromium/issues/detail?id=649679&can=2&q=css%20source%20maps
99+
//if (outputOpts.sourceMaps) {
100+
// NB rebase source map paths to output path
101+
// cssOutput += '\n/*# sourceMappingURL=data:application/json;base64,' + new Buffer(result.map.toString()).toString('base64') + '*/';
102+
//}
101103
return cssInject + '\n("' + escape(cssOutput) + '");';
102104
}
103105
});

0 commit comments

Comments
 (0)