M
M
Max2017-05-13 16:41:11
Angular
Max, 2017-05-13 16:41:11

Why files are not uploaded to a project built with angular cli?

Started using angular cli. when the project is built, all components, services, etc. are loaded, but no files are loaded. any json, or just a picture give 404 when trying to load. It seems to me that the problem is with the base-href, but no matter how hard I tried, I can’t set it up.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2017-05-13
@maxIvanenqo

Problem solved.. If anyone else has this question - the answer is in the angular-cli.json file. All folders must be listed in the assets array

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question