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

Commit

Permalink
Grumblenits
Browse files Browse the repository at this point in the history
  • Loading branch information
crisptrutski committed Feb 20, 2015
1 parent 2eee61e commit 0adefa0
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,20 @@ var builder = require('./lib/builder');
var path = require('path');

function processOpts(opts_, outFile) {
var keys = [
'config',
'lowResSourceMaps',
'minify',
'normalize',
'outFile',
'runtime',
'sourceMaps',
'sourceMapContents'
];
var opts = {};
keys.forEach(function(key) {
opts[key] = opts_ && opts_[key];
});
if (outFile) opts.outFile = outFile;
if (opts.sourceMaps == 'inline')
opts.sourceMapContents = true;
var opts = {
config: {},
lowResSourceMaps: false,
minify: false,
normalize: false,
outFile: outFile,
runtime: false,
sourceMaps: false,
sourceMapContents: opts_.sourceMaps == 'inline'
};
for (var key in opts_) {
if (key in opts)
opts[key] = opts_[key];
}
return opts;
}

Expand Down

0 comments on commit 0adefa0

Please sign in to comment.