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
This commit is contained in:
Zoltan Kochan 2019-01-15 05:54:17 +02:00 committed by Endilie Yacop Sucipto
parent 47bcac91f2
commit e31ecdfd0c

View file

@ -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);
}