mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-27 21:48:41 +02:00
feat: allow user to modify generated webpack config
This commit is contained in:
parent
2b5ee3e869
commit
10b1a38762
9 changed files with 172 additions and 3 deletions
|
@ -21,7 +21,9 @@ module.exports = function loadConfig(siteDir, deleteCache = true) {
|
|||
const optionalFields = [
|
||||
'customDocsPath',
|
||||
'highlight',
|
||||
'markdownPlugins'
|
||||
'markdownPlugins',
|
||||
'configureWebpack',
|
||||
'chainWebpack'
|
||||
];
|
||||
const missingFields = requiredFields.filter(field => !config[field]);
|
||||
if (missingFields && missingFields.length > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue