mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 20:17:50 +02:00
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:
parent
47bcac91f2
commit
e31ecdfd0c
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue