I'm using pdf.js in an angular project. Building with gulp in production mode works fine, but the production build produces non-working code that fails silently without and warnings or errors, whatsoever. I never get a viewer canvas.
pdfjs-dist bower and gulp concatenation and minification silently fail
765 views Asked by leisurelarry At
1
There are 1 answers
Related Questions in GULP
- the gulp-pug doesn't work and say unexpected token "indent"
- Use Gulp Newer on Array of Sources
- When I try to install gulp, these errors come up and I cant figure out how to fix them
- How do I run PurgeCSS on local URLs?
- how do I run gulp with error globalThis is not defined
- im getting 'local gulp not found' in an old angularjs code despite doing npm install and also installing gulp packages
- Can I use sass instead of node-sass in suiteCommerce project?
- How to build SAPUI5 application that should only have "component-preload.js"?
- gulpfile not compiling js and css on save
- Error when compliling sass - node and gulp
- regeneratorRuntime is not defined with gulp
- BrowserSync not working when on LTE connection or no Internet Connection
- How to minify html files in folders and subfolders using gulp?
- Expose $ and jQuery to global scope with Typescript, Browserify and Gulp
- Bundling separate vendor file with gulp+browserify
Related Questions in BOWER
- Failed to instantiate module ui-bootstrap for Angular after grunt serve
- Bower to Npm Migration
- When I am doing bower install I am getting error
- AngularJS v1.3.5 - Page reloads twice on route change after npm install
- Is there a way to see Bower components vulnerability like npm audit report?
- Updatation regarding moment bower components
- Bower install requiring multiple logins on cli
- How to refresh bower package certificate?
- Bower installation not working: could not read Username for 'https://github.com': No such file or directory
- bower fails with Repository not found
- Property left of ForInStatement expected node to be of a type ["VariableDeclaration","LVal"] but instead got undefined Use --force to continue
- How can I fix the error "ECMDERR Failed to execute "git ls-remote --tags --heads exit code of #128" when running bower install on GitLab CI?
- What does Rails DSL configuration mean and what does a DSL configuration look like?
- Migrating ngFileSaver from bower to node package breaks
- How to provide option object for main yarn files?
Related Questions in GULP-UGLIFY
- Gulp don't create sourcemaps
- What way of fixing pug.js was not found althought i installed by "npm install -g pug" && "npm install -g pug-cli"
- gulp generates TypeError: The Streams property must be of type function
- How use Angular gulp uglify?
- gulp-uglify causes constructor.name misbehaviour
- How to Uglify Javascript with Liquid inline(s) - Shopify
- Gulp not compile strings with backticks
- How can I use Gulp build vue component tag in the javescript file
- GulpUglifyError - filter function jQuery
- script files not loading in rev-manifest.json (gulp)
- gulpfile.js is not run on Azure VSBuild
- Gulp re-processes unchanged files
- Why is Gulp concatenating my output in the wrong order?
- Any Node.js Minifier supports Javascript Null-Coalescing operator (??)?
- gulp duplicating tasks in the terminal
Related Questions in PDF.JS
- How to pass multer file data into LangChain.js WebPDFLoader correctly?
- Adding Annotation with PDF.js
- I am trying to use pdfjs viewer ver. pdfjs-4.0.379-dist and while running it on XAMPP server i get this error:
- vue-pdf-embed/pdf.js making range requests but still waiting for whole pdf load to render
- Range Requests Not Working in SvelteKit App with PDF.js
- PDF Editor to replace certain Elements (SAP / JavaScript)
- pdfjs - Displaying a document
- How to use Rangy with PDFjs text layer?
- Splitting PDFs in NodeJS
- PDF.js v4-Open findBar by default
- How to add a signature image over a fillable pdf using pdf.js library without making pdf non editable
- How to use PDF.js with vue 3 with distribution folder on local
- How do I use a base64 encoded pdf with the prebuilt viewer from PDF.js?
- identify a Rectangular area at the bottom of PDF files in javascript
- Customizing Stamping Functionality in Mozilla PDF.js Library
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
It turns out the problem lies not with minification, but rather with concatenation. The dist directory of the pdfjs-dist bower package contains three files:
the
bower.jsonfile listpdf.jsandpdf.worker.js, but when using gulp bower copy and concatenation you should usepdf.combined.jsinstead of the other two. Add an override to your projects bower.json