1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-27 07:02:06 +03:00

fix(makeProgram): specify .mjs and .cjs config files are allowed (#1976)

This commit is contained in:
Wojciech Maj
2024-04-23 13:14:02 +02:00
committed by GitHub
parent 8d6385bd9a
commit 888d078464

View File

@@ -47,7 +47,10 @@ export default function makeProgram(program) {
'-p, --precision <INTEGER>',
'Set number of digits in the fractional part, overrides plugins params',
)
.option('--config <CONFIG>', 'Custom config file, only .js is supported')
.option(
'--config <CONFIG>',
'Custom config file, only .js, .mjs, and .cjs is supported',
)
.option(
'--datauri <FORMAT>',
'Output as Data URI string (base64), URI encoded (enc) or unencoded (unenc)',