I have recently created an Angular library (ng new library) and had an issue after building it with the ng build --prod
. My assets folder did not get copied to the dist folder and I can no longer reference my file. When I tried including the assets
script in my angular.json
I got an error - Schema validation failed
with the following errors:
Data path "" should NOT have additional properties(assets).
Is there a way of including assets in an Angular library? Please help