From e31ecdfd0ca6841ddc3494dd0362184553137f36 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Tue, 15 Jan 2019 05:54:17 +0200 Subject: [PATCH] fix: pass docusaurus-publish cli args to build command (#1185) * fix: --skip-image-compression The --skip-image-compression flag is passed thru to the build command * prettier --- v1/lib/publish-gh-pages.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/v1/lib/publish-gh-pages.js b/v1/lib/publish-gh-pages.js index 79d2494fe1..2c3fdcaeaa 100755 --- a/v1/lib/publish-gh-pages.js +++ b/v1/lib/publish-gh-pages.js @@ -89,7 +89,13 @@ if (CURRENT_BRANCH === DEPLOYMENT_BRANCH && !crossRepoPublish) { shell.exit(1); } -if (shell.exec(`node ${path.join(__dirname, 'build-files.js')}`).code) { +if ( + shell.exec( + `node ${path.join(__dirname, 'build-files.js')} ${process.argv + .slice(2) + .join(' ')}`, + ).code +) { shell.echo('Error: generating html failed'); shell.exit(1); }