Skip to content

Commit

Permalink
feat: display all pdf pages and add DocumentPreview (#88)
Browse files Browse the repository at this point in the history
* feat: add DocumentPreview

* feat: display all pdf pages
  • Loading branch information
cike8899 committed Mar 1, 2024
1 parent 3d4315c commit 5fb8989
Show file tree
Hide file tree
Showing 17 changed files with 813 additions and 43 deletions.
17 changes: 17 additions & 0 deletions web/.umirc.ts
Original file line number Diff line number Diff line change
@@ -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' },
Expand Down Expand Up @@ -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);
},
});
Loading

0 comments on commit 5fb8989

Please sign in to comment.