feat(core): support docusaurus.config.cjs as default file name (#7371)

This commit is contained in:
Joshua Chen 2022-05-27 17:11:58 +08:00 committed by GitHub
parent 35e63515e6
commit be912c698a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 97 additions and 23 deletions

View file

@ -30,8 +30,11 @@ export const DEFAULT_BUILD_DIR_NAME = 'build';
/**
* Can be overridden with cli option `--config`. Code should generally use
* `context.siteConfigPath` instead (which is always absolute).
*
* This does not have extensions, so that we can substitute different ones
* when resolving the path.
*/
export const DEFAULT_CONFIG_FILE_NAME = 'docusaurus.config.js';
export const DEFAULT_CONFIG_FILE_NAME = 'docusaurus.config';
/** Can be absolute or relative to site directory. */
export const BABEL_CONFIG_FILE_NAME =