From 3a75c350b4151d34879a84ea1f5b8f5fb766b540 Mon Sep 17 00:00:00 2001 From: Zhicheng WANG Date: Tue, 31 Dec 2019 09:25:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(aio):=20=E9=A2=9D=E5=A4=96=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=20cn/about=20=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/tools/translator/bin/prerender.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aio/tools/translator/bin/prerender.ts b/aio/tools/translator/bin/prerender.ts index 5af7e4caff..aac20379dd 100644 --- a/aio/tools/translator/bin/prerender.ts +++ b/aio/tools/translator/bin/prerender.ts @@ -1,10 +1,10 @@ import { readFileSync, writeFileSync } from 'fs'; -import * as klawSync from 'klaw-sync'; -import { sync as mkdirp } from 'mkdirp'; import { minify } from 'html-minifier'; +import * as klawSync from 'klaw-sync'; +import { chunk, uniq } from 'lodash'; +import { sync as mkdirp } from 'mkdirp'; import { dirname, join } from 'path'; import { Browser, launch, Request } from 'puppeteer'; -import { chunk, uniq } from 'lodash'; const minifyOptions = { collapseWhitespace: true, @@ -28,7 +28,7 @@ function getApiUrls(): string[] { .map(file => file.path.replace(/^.*generated\/docs\/(.*).json$/, '$1')); } -const urls = [...getGuideUrls(), ...getApiUrls(), 'index.html']; +const urls = [...getGuideUrls(), ...getApiUrls(), 'translations/cn/about.html', 'index.html']; function filterResource(request: Request) { const type = request.resourceType();