1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00

Fix support for undefined tasks

For example, if there are no `concats` tasks defined in 'loconfig.json', avoid throwing an error.
This commit is contained in:
Chauncey McAskill
2023-08-08 14:49:47 -04:00
parent 70b36052e6
commit 596ff7a8ee
5 changed files with 11 additions and 8 deletions

View File

@@ -95,7 +95,7 @@ export default async function concatFiles(globOptions = null, concatOptions = nu
* Defaults to the outfile name.
* @return {Promise}
*/
loconfig.tasks.concats.forEach(async ({
loconfig.tasks.concats?.forEach(async ({
includes,
outfile,
label = null