Skip to content

Node.js based forum software built for the modern web

outputting friendly warning if build target contains commas

Julian Lam598675d5976b
diff --git a/src/meta/build.js b/src/meta/build.js
index 552c9aa55c..52037b702c 100644
--- a/src/meta/build.js
+++ b/src/meta/build.js
@@ -143,6 +143,11 @@ function build(targets, callback) {
target = target.toLowerCase().replace(/-/g, '');
if (!aliases[target]) {
winston.warn('[build] Unknown target: ' + target);
+ if (target.indexOf(',') !== -1) {
+ winston.warn('[build] Are you specifying multiple targets? Separate them with spaces:');
+ winston.warn('[build] e.g. `./nodebb build adminjs tpl`');
+ }
+
return false;
}