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
763 Views Asked by leisurelarry At
1
There are 1 best solutions below
Related Questions in GULP
- Strange npm behavior when installing packages like grunt
- Gulp wont restart in any of my projects
- Gulp Sass not compiling partials
- Convert all html templates to single object and store it in a js file
- Gulp Watch Isn't Watching
- Gulp fails and returns Unhandled 'error' event
- Using Bower with Express
- Webpack Uglify plugin returns "Killed" on Ubuntu
- Not able to run 'npm install' on vagrant homestead
- WP Super Cache to create a static version of the full site
- Gulp with WebPack. Which should be building my coffee/jade etc.?
- Gulp useref concatenates js files twice
- Gulp task throwing ENOTEMPTY error in console
- gulp-ftp errors when uploading to remote path
- Watchify with gulp is not working
Related Questions in BOWER
- Strange npm behavior when installing packages like grunt
- Intellisense on Visual Studio 2015 RC for bower.json file is not working properly.
- Does an existing gruntfile need to be edited? What is the common workflow?
- Using Bower with Express
- Cannot link to files from bower in meteor
- Copying node_modules or bower_components to static/public directory in web app
- Grunt-serve removes bootstrap-sass-official javascript files after update to 3.3.4
- how to manage file dependencies in a website
- Difference between bower, browserify, requirejs, webpack?
- How to explicitly include Foundation 5 child scripts in Bower/Grunt?
- So I have angular from bower, now what?
- Ember install:bower vs Bower install
- Load libraries with wiredep
- Polymer with Bower causes build to fail in Cordova
- Adding the uri.js bower component breaks my Grunfile.js, which dies thinking the uri.js directory is a file. How to fix?
Related Questions in GULP-UGLIFY
- Getting gulp-sourcemaps to map correctly with a series of plugins
- Source Map Behavior -- how to view original javascript before minification
- Gulp, concat and uglify files and concat with vendor
- gulp-uglify events.js unhandled 'error' event
- gulp-uglify minifying script that it is not supposed to
- gulp maintain same destination path as in the source
- Gulp generating .min file on local but not on server
- Keep global variables in gulp
- Uglify Minify and generate source map with Gulp
- Sourcemap source files are empty using gulp-uglifyjs
- Gulp Minify issues with angular app files using requirejs
- JavaScript heap out of memory in angular js gulp sourcemap ngannonate with babel
- how to make angular Js app with springboot take from gulp uglification file
- Gulp AssertionError [ERR_ASSERTION]: Task function must be specified after Node and NPM update
- pdfjs-dist bower and gulp concatenation and minification silently fail
Related Questions in PDF.JS
- open pdf via pdf.js
- TextRange.getBoundingClientRect on PDF.js is giving all zeros in IE10/IE11
- How could I use PDF.js with web2py?
- Open pdf.js with a data URL in IE11
- How to get pdf title using pdf.js?
- Is there any trick to rotate text in PDFKit?
- Grails and pdf.js and rendering a pdf via an ajax call
- How am I supposed to use the "pdf" package from typescript
- dynamically give pdf path in pdf.js using php mysql
- Pdf.js add thumbnail view
- PDF JS, from file location
- Some .tiff files are not getting viewed from pdf.js
- Can't Load more pdf files dynamically using PDFView.open in pdf.js
- Getting textcontent pdf.js
- use pdf.js web viewer without node_module dependencies
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)
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?
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