mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-19 09:37:43 +02:00
fix(core): allow empty static directories (#7285)
* fix(core): allow empty static directories * improve comment * add empty directory
This commit is contained in:
parent
594d8f357c
commit
e1b7171bb1
2 changed files with 28 additions and 6 deletions
|
@ -120,6 +120,9 @@ const config = {
|
|||
staticDirectories: [
|
||||
'static',
|
||||
path.join(__dirname, '_dogfooding/_asset-tests'),
|
||||
// Adding a non-existent static directory. If user deleted `static` without
|
||||
// specifying `staticDirectories: []`, build should still work
|
||||
path.join(__dirname, '_dogfooding/non-existent'),
|
||||
],
|
||||
themes: ['live-codeblock', ...dogfoodingThemeInstances],
|
||||
plugins: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue