Skip to content
Discussion options

You must be logged in to vote

Yes, you can do that. The documentation suggests to copy the entire assets folder, but most of the time, you only need a small fraction of the files. You can configure the architect -> build -> options -> assets section of your angular.json like so:

  • First of all, omit the folder cmaps. You only need it to display old East-Asian files.
  • The folder additional-locales shouldn't even be part of the distribution. Omit it.
  • The folder inline-locale-file isn't used by the PDF viewer. Get rid of it. I'll talk about it again in a minute.
  • The library loads only the files of the folder locale of the languages you need. Drop everything else.

You can even get rid of the entire folder if you inline the…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@muuvmuuv
Comment options

@stephanrauh
Comment options

@muuvmuuv
Comment options

Answer selected by muuvmuuv
Comment options

You must be logged in to vote
1 reply
@stephanrauh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants