ngx-extended-pdf-viewer allows to omit the subfolders inline-locale-files
and additional-locale
after copying the entire library assets
"src/assets",
{
"glob": "**/*",
"input": "node_modules/ngx-extended-pdf-viewer/assets/",
"output": "/assets/"
}
I tried to add ignore in the angular.json, but ignore is not allowed.
{
"glob": "**/*",
"input": "node_modules/ngx-extended-pdf-viewer/assets/",
"ignore": [
"node_modules/ngx-extended-pdf-viewer/assets/additional-locale",
"node_modules/ngx-extended-pdf-viewer/assets/inline-locale-files"
],
"output": "/assets/"
}
How can I omit these folders and reduce the language list
You can replace
**/*
by a simple*
. However, if you need a subfolder, you have to add each subfolder individually. So it's not a nice solution. But it works!BTW, omitting these folders doesn't have any impact on your runtime performance. It just makes your distribution package smaller.