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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user