Skip to content

Commit

Permalink
Corrected browserify options
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Oct 22, 2015
1 parent 9c0d765 commit 2a58b4b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/tessel/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,16 +215,18 @@ actions.tarBundle = function(opts) {
var buffers = [];

if (opts.slim) {
console.log('Running slim...');
logs.info('Generating slim build.');
return new Promise(function(resolve, reject) {
var b = browserify(opts.resolvedEntryPoint, {
node: true,
ignoreMissing: true
builtins: false,
commondir: false,
browserField: false,
detectGlobals: false,
ignoreMissing: true,
});
b.transform(uglify);
b.bundle(function(err, results) {
if (err) {
console.log('Error');
reject(err);
} else {
fs.writeFileSync(opts.slimPath, results.toString());
Expand Down

0 comments on commit 2a58b4b

Please sign in to comment.