mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
feat: display all pdf pages and add DocumentPreview (#88)
* feat: add DocumentPreview * feat: display all pdf pages
This commit is contained in:
@ -1,6 +1,16 @@
|
||||
import path from 'path';
|
||||
import { defineConfig } from 'umi';
|
||||
import routes from './src/routes';
|
||||
|
||||
const cMapsDir = path.join(
|
||||
path.dirname(require.resolve('pdfjs-dist/package.json')),
|
||||
'cmaps',
|
||||
);
|
||||
const standardFontsDir = path.join(
|
||||
path.dirname(require.resolve('pdfjs-dist/package.json')),
|
||||
'standard_fonts',
|
||||
);
|
||||
|
||||
export default defineConfig({
|
||||
outputPath: 'dist',
|
||||
// alias: { '@': './src' },
|
||||
@ -28,4 +38,11 @@ export default defineConfig({
|
||||
// pathRewrite: { '^/v1': '/v1' },
|
||||
},
|
||||
},
|
||||
copy: [
|
||||
{ from: cMapsDir, to: 'cmaps/' },
|
||||
{ from: standardFontsDir, to: 'standard_fonts/' },
|
||||
],
|
||||
chainWebpack(memo, args) {
|
||||
console.info(memo);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user