Skip to content

Commit

Permalink
fix: pass docusaurus-publish cli args to build command (#1185)
Browse files Browse the repository at this point in the history
* fix: --skip-image-compression

The --skip-image-compression flag is passed thru to the build command

* prettier
  • Loading branch information
zkochan authored and endiliey committed Jan 15, 2019
1 parent 47bcac9 commit e31ecdf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion v1/lib/publish-gh-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e31ecdf

Please sign in to comment.