feat: #8734, move sortable to package.json

This commit is contained in:
Barış Soner Uşaklı
2020-10-10 23:24:13 -04:00
parent 75c9668656
commit cc705e5e2b
4 changed files with 14 additions and 1135 deletions

View File

@@ -83,7 +83,6 @@ JS.scripts = {
admin: [
'node_modules/material-design-lite/material.js',
'public/vendor/jquery/sortable/Sortable.js',
'public/vendor/colorpicker/colorpicker.js',
'public/src/admin/admin.js',
'public/vendor/jquery/serializeObject/jquery.ba-serializeobject.min.js',
@@ -296,8 +295,18 @@ function requirejsOptimize(target, callback) {
name: 'bootbox',
},
];
const targetModules = {
admin: [
{
baseUrl: './node_modules/sortablejs',
name: 'sortable',
},
],
client: [
async.eachSeries(bundledModules, function (moduleCfg, next) {
],
};
async.eachSeries(bundledModules.concat(targetModules[target]), function (moduleCfg, next) {
requirejs.optimize({ ...sharedCfg, ...moduleCfg }, function () {
next();
}, function (err) {