[node.js] Add inSourceMapFromString option so one can pass in the sourcemap contents in inSourceMap.
This commit is contained in:
parent
7bf59b5bcd
commit
c7bb60cab0
|
|
@ -103,7 +103,7 @@ exports.minify = function(files, options) {
|
|||
// 4. output
|
||||
var inMap = options.inSourceMap;
|
||||
var output = {};
|
||||
if (typeof options.inSourceMap == "string") {
|
||||
if (typeof options.inSourceMap == "string" && !options.inSourceMapFromString) {
|
||||
inMap = fs.readFileSync(options.inSourceMap, "utf8");
|
||||
}
|
||||
if (options.outSourceMap) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user