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

Commit

Permalink
Revert "uglifyjs support for source map contents"
Browse files Browse the repository at this point in the history
This reverts commit 13ff32d.
  • Loading branch information
guybedford committed Mar 19, 2016
1 parent 13ff32d commit b5cb4bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function createOutput(outFile, outputs, basePath, sourceMaps, sourceMapContents)
};
}

function minify(output, fileName, mangle, uglifyOpts, sourceMapContents) {
function minify(output, fileName, mangle, uglifyOpts) {
var uglify = require('uglify-js');
var ast;
try{
Expand Down Expand Up @@ -98,7 +98,6 @@ function minify(output, fileName, mangle, uglifyOpts, sourceMapContents) {
return comment.line === 1 && comment.col === 0;
};
outputOptions.source_map = sourceMap;
outputOptions.source_map_include_sources = sourceMapContents;

output.source = ast.print_to_string(outputOptions);
output.sourceMap = sourceMap;
Expand Down Expand Up @@ -140,7 +139,7 @@ exports.writeOutputs = function(outputs, baseURL, outputOpts) {
var output = createOutput(outFile || path.resolve(basePath, fileName), outputs, basePath, outputOpts.sourceMaps, outputOpts.sourceMapContents);

if (outputOpts.minify)
output = minify(output, fileName, outputOpts.mangle, outputOpts.uglify, outputOpts.sourceMapContents);
output = minify(output, fileName, outputOpts.mangle, outputOpts.uglify);

if (outputOpts.sourceMaps == 'inline') {
output.source = inlineSourceMap(output.source, output.sourceMap);
Expand Down

0 comments on commit b5cb4bb

Please sign in to comment.