docs: 修复文档中的 word 文件链接报错 (#8835)

ord 文件链接报错
This commit is contained in:
吴多益 2023-11-21 19:02:54 +08:00 committed by GitHub
parent ef48b59d13
commit 16f0dbef17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -688,7 +688,10 @@ if (fis.project.currentMedia() === 'publish-sdk') {
postprocessor: convertSCSSIE11
});
const ghPages = fis.media('gh-pages');
ghPages.set('project.files', ['examples/index.html']);
ghPages.set('project.files', [
'examples/index.html',
'/examples/static/*.docx'
]);
ghPages.match('*.scss', {
parser: fis.plugin('sass', {
@ -1008,6 +1011,10 @@ if (fis.project.currentMedia() === 'publish-sdk') {
useHash: true
});
ghPages.match('*.docx', {
useHash: false
});
ghPages.match('*.{js,ts,tsx,jsx}', {
optimizer: fis.plugin('terser'),
useHash: true