Skip to content

Commit

Permalink
Don't load 'jsonminify' until needed
Browse files Browse the repository at this point in the history
  • Loading branch information
victorporof committed Nov 28, 2013
1 parent 002d147 commit f447207
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/run.js
Expand Up @@ -5,8 +5,6 @@
(function() {
"use strict";

require("jsonminify");

// Cache the console log function and the process arguments.
var log = console.log;
var argv = process.argv;
Expand All @@ -30,6 +28,7 @@
}
function getOptions(file) {
try {
require("jsonminify");
return JSON.parse(JSON.minify(fs.readFileSync(file, "utf8")));
} catch (e) {
return Object.create(null);
Expand Down

0 comments on commit f447207

Please sign in to comment.