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

Improve concats.js, scripts.js, svgs.js

Added:
- Condition to cast `includes` into an array.

Removed:
- Variable `files` in favour of reusing `includes` in 'concats.js'.
This commit is contained in:
Chauncey McAskill
2022-03-29 18:46:24 -04:00
parent 7ff6094e40
commit a4656f59ed
3 changed files with 17 additions and 9 deletions

View File

@@ -60,6 +60,10 @@ export default async function compileSVGs(mixerOptions = null) {
console.time(timeLabel);
try {
if (!Array.isArray(includes)) {
includes = [ includes ];
}
includes = resolve(includes);
outfile = resolve(outfile);