fix: #6922, skin assets not including plugin LESS files

This commit is contained in:
Julian Lam
2018-11-07 19:18:11 -05:00
parent aef1c155cc
commit a5022ce425
2 changed files with 4 additions and 4 deletions

View File

@@ -127,7 +127,6 @@ function getBundleMetadata(target, callback) {
themeData.bootswatchSkin = skin || themeData.bootswatchSkin;
}
async.parallel({
less: function (cb) {
async.waterfall([

View File

@@ -210,9 +210,10 @@ middleware.buildSkinAsset = function (req, res, next) {
// If this middleware is reached, a skin was requested, so it is built on-demand
var target = path.basename(req.originalUrl).match(/(client-[a-z]+)/);
if (target) {
meta.css.buildBundle(target[0], true, function () {
next();
});
async.waterfall([
async.apply(plugins.prepareForBuild, ['client side styles']),
async.apply(meta.css.buildBundle, target[0], true),
], next);
} else {
setImmediate(next);
}