init-webviewer.js 218 B

123456789
  1. const fs = require('fs-extra');
  2. const copyFiles = async () => {
  3. try {
  4. await fs.copy('./node_modules/@pdftron/webviewer/public','./public/webviewer/');
  5. } catch (err) {
  6. console.error(err);
  7. }
  8. };
  9. copyFiles();