mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 08:07:26 +02:00
Allow separate css files that don't get added to Docusaurus's
This commit is contained in:
parent
35e0a83817
commit
1edd160ceb
3 changed files with 8 additions and 2 deletions
|
@ -354,6 +354,9 @@ function execute(port) {
|
|||
let files = glob.sync(CWD + "/static/**/*.css");
|
||||
|
||||
files.forEach(file => {
|
||||
if (siteConfig.separateCss.indexOf(path.basename(file)) != -1) {
|
||||
return;
|
||||
}
|
||||
cssContent =
|
||||
cssContent + "\n" + fs.readFileSync(file, { encoding: "utf8" });
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue