From 2ac9c0dd8f398e35f5eaf34807b483544c736509 Mon Sep 17 00:00:00 2001 From: Patrick Demers Date: Sun, 14 Mar 2021 19:35:33 -0500 Subject: [PATCH] add disableGoogleFont parameter to serve command --- cli/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cli/index.ts b/cli/index.ts index 8a0747f4..ec419a03 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -72,6 +72,12 @@ YargsParser.command( type: 'boolean', }); + yargs.options('disableGoogleFont', { + describe: 'Disable Google Font', + type: 'boolean', + default: false, + }); + yargs.demandOption('spec'); return yargs; }, @@ -80,6 +86,7 @@ YargsParser.command( ssr: argv.ssr as boolean, title: argv.title as string, watch: argv.watch as boolean, + disableGoogleFont: argv.disableGoogleFont as boolean, templateFileName: argv.template as string, templateOptions: argv.templateOptions || {}, redocOptions: getObjectOrJSON(argv.options),