Skip to content

Commit 98c5aef

Browse files
authored
Fix error when generating an external source map.
Fixes #7
1 parent ace6c69 commit 98c5aef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/clean-css-processor.js

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = function() {
1717
if (sourceMap) {
1818
options.sourceMap = sourceMap.getExternalSourceMap();
1919
if (options.sourceMap) {
20+
options.sourceMap = options.sourceMap.toString();
2021
var sourceMapObj = JSON.parse(options.sourceMap);
2122
if (sourceMapObj.sourcesContent) {
2223
sourcesContent = sourceMapObj.sourcesContent;

0 commit comments

Comments
 (0)