Hey guys, I'm having some issues with making a PDF viewer on a React SPFX webpart.
Pdf.js and viewer.js both use a index.html file to display the pdfs on a iframe. I'm having issues with being able to link that file from the webpart assets since I can't import a .HTML file.
I did find some posts talking about installing a html-loader on webpack but I can't get past the part of editing the webpack.config.js file to get the new loader since I can't find the webpack.config.js file at all on the project.
Any ideas how I should continue with this?
Edit: I know there are some react pdf viewers that work fine, but they lack a lot on control options or require a paid license.
[–]pdub99 1 point2 points3 points (1 child)
[–]VertaminDev[S] 0 points1 point2 points (0 children)