fix: 修复 gh-pages 报错 close #10592 (#10598)

This commit is contained in:
liaoxuezhi 2024-07-08 12:49:41 +08:00 committed by GitHub
parent 0ae250b304
commit eba564d45e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 5 deletions

View File

@ -248,10 +248,10 @@ export default function (schema, schemaProps, showCode, envOverrides) {
},
// testid
// enableTestid: true,
pdfjsWorkerSrc: new URL(
'pdfjs-dist/build/pdf.worker.min.mjs',
import.meta.url
).toString(),
// pdfjsWorkerSrc: new URL(
// 'pdfjs-dist/build/pdf.worker.min.mjs',
// import.meta.url
// ).toString(),
...envOverrides
};

View File

@ -714,6 +714,7 @@ if (fis.project.currentMedia() === 'publish-sdk') {
'examples/app/index.html',
'/examples/static/*.docx',
'/examples/static/*.xlsx'
// '/examples/map.json'
]);
ghPages.match('*.scss', {
@ -861,7 +862,9 @@ if (fis.project.currentMedia() === 'publish-sdk') {
'!office-viewer/**',
'!amis-core/**',
'!amis-ui/**',
'!amis/**'
'!amis/**',
'!react-pdf/**',
'!pdfjs-dist/**'
],
'pkg/rich-text.js': [
@ -894,6 +897,11 @@ if (fis.project.currentMedia() === 'publish-sdk') {
'punycode/**'
],
'pkg/pdf-viewer.js': [
'amis-ui/lib/components/PdfViewer.js',
'react-pdf/**'
],
'pkg/color-picker.js': [
'amis-ui/lib/components/ColorPicker.tsx',
'react-color/**',