I am using angular-cli
with built-in webpack
and encounter the following problem: if I use ng serve --host 0.0.0.0 --port 3000
everything works fine, but when I try to build the app (no matter developer mode or production) with ng build
and then put it into my nginx
, not a single route works and every attempt of browser to download image, which is used on start page, ends with 404 error. What am I doing wrong? Googled a ton of stuff and nothing seems to be a solution.
Some additional info:
angular-cli: 1.0.0-beta.21
node: 6.9.4
os: win32 x64