mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
parent
0ae250b304
commit
eba564d45e
@ -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
|
||||
};
|
||||
|
||||
|
10
fis-conf.js
10
fis-conf.js
@ -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/**',
|
||||
|
Loading…
Reference in New Issue
Block a user