mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-27 06:57:57 +02:00
2 bug fixes (#98)
* Merge fix * Updating lock file. * Bug fix for rss feed truncation... * Fixes infinite recursive loop for #89 * Removed use of module cache invalidator from feed.js * Replaced 'latest' babel presets with 'env' * Ignore temp build folder * Adding back new truncation logic for RSS * Updating yarn lock
This commit is contained in:
parent
f26db92a46
commit
3b5db4bbf8
10 changed files with 507 additions and 433 deletions
|
@ -10,10 +10,10 @@
|
|||
*/
|
||||
|
||||
require("babel-register")({
|
||||
babelrc: false,
|
||||
only: [__dirname, process.cwd() + "/core"],
|
||||
plugins: [require("./server/translate-plugin.js")],
|
||||
presets: ["react", "latest"]
|
||||
babelrc: false,
|
||||
only: [__dirname, process.cwd() + "/core"],
|
||||
plugins: [require("./server/translate-plugin.js")],
|
||||
presets: ["react", "env"]
|
||||
});
|
||||
|
||||
// initial check that required files are present
|
||||
|
@ -22,10 +22,10 @@ const fs = require("fs");
|
|||
const CWD = process.cwd();
|
||||
|
||||
if (!fs.existsSync(CWD + "/siteConfig.js")) {
|
||||
console.error(
|
||||
chalk.red("Error: No siteConfig.js file found in website folder!")
|
||||
);
|
||||
process.exit(1);
|
||||
console.error(
|
||||
chalk.red("Error: No siteConfig.js file found in website folder!")
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// generate all static html files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue