|
|
@@ -17,6 +17,7 @@ const skipValidation = process.argv.includes( '--skip-validation' );
|
|
|
const production = process.argv.includes( '--production' );
|
|
|
const watch = process.argv.includes( '--watch' );
|
|
|
const verbose = process.argv.includes( '--verbose' );
|
|
|
+const whitelistedSnippets = process.argv.find( item => item.startsWith( '--whitelisted-snippet=' ) );
|
|
|
|
|
|
buildDocs();
|
|
|
|
|
|
@@ -56,6 +57,7 @@ function runUmberto( options ) {
|
|
|
},
|
|
|
skipApi: options.skipApi,
|
|
|
verbose: options.verbose,
|
|
|
- watch: options.watch
|
|
|
+ watch: options.watch,
|
|
|
+ whitelistedSnippets: whitelistedSnippets ? whitelistedSnippets.replace( '--whitelisted-snippet=', '' ) : undefined
|
|
|
} );
|
|
|
}
|