concat minimize most common routes

v1.18.x
barisusakli 9 years ago
parent 85d09ce2e4
commit 9040a1a063

@ -5,7 +5,6 @@ var winston = require('winston'),
path = require('path'),
async = require('async'),
_ = require('underscore'),
os = require('os'),
nconf = require('nconf'),
fs = require('fs'),
file = require('../file'),
@ -50,15 +49,32 @@ module.exports = function(Meta) {
'public/src/client/chats.js',
'public/src/client/infinitescroll.js',
'public/src/client/pagination.js',
'public/src/client/recent.js',
'public/src/client/unread.js',
'public/src/client/topic.js',
'public/src/client/topic/browsing.js',
'public/src/client/topic/events.js',
'public/src/client/topic/flag.js',
'public/src/client/topic/fork.js',
'public/src/client/topic/move.js',
'public/src/client/topic/posts.js',
'public/src/client/topic/postTools.js',
'public/src/client/topic/threadTools.js',
'public/src/client/categories.js',
'public/src/client/category.js',
'public/src/client/categoryTools.js',
'public/src/modules/csrf.js',
'public/src/modules/translator.js',
'public/src/modules/notifications.js',
'public/src/modules/chat.js',
'public/src/modules/components.js',
'public/src/modules/composer/formatting.js',
'public/src/modules/composer/controls.js',
'public/src/modules/composer/preview.js',
'public/src/modules/categories.js',
'public/src/modules/sort.js',
'public/src/modules/navigator.js',
'public/src/modules/topicSelect.js',
'public/src/modules/share.js',
'public/src/modules/search.js',
'public/src/modules/alerts.js',
'public/src/modules/taskbar.js',
'public/src/modules/helpers.js',
'public/src/modules/sounds.js',
@ -72,8 +88,7 @@ module.exports = function(Meta) {
async.apply(getPluginScripts), // plugin scripts via filter:scripts.get
function(next) { // client scripts via "scripts" config in plugin.json
var pluginsScripts = [],
pluginDirectories = [],
clientScripts = [];
pluginDirectories = [];
pluginsScripts = plugins.clientScripts.filter(function(path) {
if (path.endsWith('.js')) {
@ -268,4 +283,4 @@ module.exports = function(Meta) {
callback();
});
}
};
};

Loading…
Cancel
Save