mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
minify flag not actually being used
This commit is contained in:
@@ -123,7 +123,7 @@ module.exports = function(Meta) {
|
||||
});
|
||||
};
|
||||
|
||||
Meta.js.minify = function(minify, callback) {
|
||||
Meta.js.minify = function(callback) {
|
||||
if (nconf.get('isPrimary') === 'true') {
|
||||
/**
|
||||
* Check if the parent process is running with the debug option --debug (or --debug-brk)
|
||||
@@ -218,14 +218,14 @@ module.exports = function(Meta) {
|
||||
});
|
||||
};
|
||||
|
||||
Meta.js.getFromFile = function(minify, callback) {
|
||||
Meta.js.getFromFile = function(callback) {
|
||||
var scriptPath = path.join(__dirname, '../../public/nodebb.min.js'),
|
||||
mapPath = path.join(__dirname, '../../public/nodebb.min.js.map'),
|
||||
paths = [scriptPath];
|
||||
file.exists(scriptPath, function(exists) {
|
||||
if (!exists) {
|
||||
winston.warn('[meta/js] No script file found on disk, re-minifying');
|
||||
Meta.js.minify(minify, callback);
|
||||
Meta.js.minify(callback);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user