From a319aa7f9e21671bc73de1f19d7b257d3dbbb753 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Mon, 29 Jul 2013 23:40:55 -0700 Subject: [PATCH] Implement 'bundle --debug'. Fixes #748. --- tools/meteor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/meteor.js b/tools/meteor.js index 1a2b1f8e0e..93500596f9 100644 --- a/tools/meteor.js +++ b/tools/meteor.js @@ -801,6 +801,8 @@ Fiber(function () { help: "Pack this project up into a tarball", argumentParser: function (opt) { opt.boolean('for-deploy') + .boolean('debug') + .describe('debug', "bundle in debug mode (don't minify, etc)") .usage("Usage: meteor bundle \n" + "\n" + "Package this project up for deployment. The output is a tarball that\n" + @@ -829,7 +831,7 @@ Fiber(function () { var bundler = require(path.join(__dirname, 'bundler.js')); var bundleResult = bundler.bundle(context.appDir, bundle_path, { nodeModulesMode: argv['for-deploy'] ? 'skip' : 'copy', - minify: true, // XXX allow --debug + minify: !argv.debug, releaseStamp: context.releaseVersion, library: context.library });