Fix CLI --content option (#5775)

* Add failing test

* Fix CLI `--content` option
This commit is contained in:
Brad Cornes 2021-10-13 19:58:15 +01:00 • committed by GitHub
parent 1a08732382
commit 92df04d0c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View file

@ -430,7 +430,7 @@ async function build() {
}
if (args['--content']) {
resolvedConfig.content = args['--content'].split(/(?<!{[^}]+),/)
resolvedConfig.content.files = args['--content'].split(/(?<!{[^}]+),/)
}
return resolvedConfig