I'm trying to get a svg image from a package in node_modules, I installed from my private local npm registry, the package downloaded and exists under my node_modules of the project, my html code is like this
<img src="/src/assets/images/my-image.svg">
as I use a little script in angular-cli.json
file to pass assets from node_modules to this local assets folder.
and I have the "Failed to load resource: the server responded with a status of 404 (Not Found)"
I verified that the image exists on node_modues and I can preview it, i'm using angular/cli 1.6.8
Update:
Angular doesn't access assets on node_modules
folder, but I find a way how to do it, by using this code:
"assets": [
{ "glob": "**/*",
"input": "../node_modules/my-private-package.assets/",
"output": "./assets/" },
"assets",
"favicon.ico"
]
In the angular-cli.json, but still cannot access these assets and still says same error.