mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
fixed issue where even dev mode would call the minifier for js
This commit is contained in:
10
src/meta.js
10
src/meta.js
@@ -266,9 +266,13 @@ var fs = require('fs'),
|
|||||||
|
|
||||||
Meta.js.scripts = jsPaths.filter(function(path) { return path !== null });
|
Meta.js.scripts = jsPaths.filter(function(path) { return path !== null });
|
||||||
|
|
||||||
callback(null, [
|
if (process.env.NODE_ENV !== 'development') {
|
||||||
Meta.js.minFile
|
callback(null, [
|
||||||
]);
|
Meta.js.minFile
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
|
callback(null, scripts);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
minify: function (callback) {
|
minify: function (callback) {
|
||||||
|
|||||||
Reference in New Issue
Block a user