fix: pdf viewer and embeds
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
const pdfjsDistPath = path.dirname(require.resolve('pdfjs-dist/package.json'));
|
||||
|
||||
const pdfWorkerPath = path.join(pdfjsDistPath, 'build', 'pdf.worker.min.js');
|
||||
|
||||
console.log(`Copying pdf.js to: ${path.resolve('./public/pdf.worker.min.js')}`);
|
||||
fs.copyFileSync(pdfWorkerPath, './public/pdf.worker.min.js');
|
||||
Reference in New Issue
Block a user