mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-02-08 00:21:11 +01:00
Use locally-installed Gulp over globally-installed one
parent
f6c741bb91
commit
03af8ee6ca
@ -159,9 +159,9 @@ User interface buttons or <kbd>ctrl</kbd> + mouse wheel can be used to change th
|
||||
|
||||
You can build a minified version of PDF.js using the following command:
|
||||
|
||||
`gulp minified`
|
||||
`npx gulp minified`
|
||||
|
||||
We use Terser to minify the JS files. It is known that other minifiers might break PDF.js code if advanced options are used (see [#710](https://github.com/mozilla/pdf.js/issues/710) or [#2479](https://github.com/mozilla/pdf.js/issues/2479)). It's safe to use minifiers, such as Google Closure Compiler, in whitespace/comments removal mode. If you are not using `gulp minified`, please note that you *must* configure the minifier to keep original class/function names intact; otherwise the build is not guaranteed to work correctly.
|
||||
We use Terser to minify the JS files. It is known that other minifiers might break PDF.js code if advanced options are used (see [#710](https://github.com/mozilla/pdf.js/issues/710) or [#2479](https://github.com/mozilla/pdf.js/issues/2479)). It's safe to use minifiers, such as Google Closure Compiler, in whitespace/comments removal mode. If you are not using `npx gulp minified`, please note that you *must* configure the minifier to keep original class/function names intact; otherwise the build is not guaranteed to work correctly.
|
||||
|
||||
<a name="gh-pages"></a>
|
||||
## Is there a pre-built version PDF.js available?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user