Skip to content

Node.js based forum software built for the modern web

fixed issue where even dev mode would call the minifier for js

Julian Lam309dcaee060c
diff --git a/src/meta.js b/src/meta.js
index 7a41b162ff..cb8f43c3fb 100644
--- a/src/meta.js
+++ b/src/meta.js
@@ -266,9 +266,13 @@ var fs = require('fs'),
Meta.js.scripts = jsPaths.filter(function(path) { return path !== null });
- callback(null, [
- Meta.js.minFile
- ]);
+ if (process.env.NODE_ENV !== 'development') {
+ callback(null, [
+ Meta.js.minFile
+ ]);
+ } else {
+ callback(null, scripts);
+ }
});
},
minify: function (callback) {