fix cli purge option when using commas (#4578)

This commit is contained in:
Brad Cornes 2021-06-08 11:32:50 +01:00 • committed by GitHub
parent 40645d7dca
commit 3569d49f7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -345,7 +345,7 @@ async function build() {
let resolvedConfig = resolveConfigInternal(config)
if (args['--purge']) {
resolvedConfig.purge = args['--purge'].split(',')
resolvedConfig.purge = args['--purge'].split(/(?<!{[^}]+),/)
}
if (args['--jit']) {