feat: 增加日志

This commit is contained in:
Zhicheng WANG 2018-12-26 09:51:33 +08:00
parent a1b74f25fa
commit 57afc8bf19
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ const minifyOptions = {
};
function composePage(url) {
console.log(`pre-rendering ${url}...`);
const { title, contents } = JSON.parse(fs.readFileSync(`./dist/generated/docs/${url}.json`, 'utf-8'));
if (!contents) {