Permalink
Browse files

IMPROVED - Defaults require.js logLevel to error instead of silent. A…

…lso allows specifying log level in require.config.json
  • Loading branch information...
1 parent a7f8a02 commit 8ea1b3767a70c6dc58e58ba9d612b7e28ecf468f @glesperance committed Apr 29, 2013
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/client/client.js
View
@@ -330,16 +330,20 @@ function optimizeDir(dir_path, dst_tmpdir, options_tmpdir, callback) {
config.optimize && (options.optimize = config.optimize);
- options.uglify2 = config.uglify2;
+ options.logLevel = !isNaN(config.logLevel)
+ ? config.logLevel
+ : 3 // ERROR
+
+ options.uglify2 = config.uglify2 || {};
options.generateSourceMaps= config.generateSourceMaps;
options.preserveLicenseComments = config.preserveLicenseComments;
options.paths = options.paths || {};
options.paths['jade-runtime'] = 'empty:';
- external_modules.push('now');
- options.paths['now'] = 'empty:';
+ // external_modules.push('now');
+ // options.paths['now'] = 'empty:';
callback(null);

0 comments on commit 8ea1b37

Please sign in to comment.