Allow separate css files that don't get added to Docusaurus's

This commit is contained in:
Frank Li 2017-07-21 12:13:13 -07:00
parent 35e0a83817
commit 1edd160ceb
3 changed files with 8 additions and 2 deletions

View file

@ -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" });
});