angularjs - Why my build project Angular2 don't work in any apache server? -


i turn build angular project (ejected webpack) in server apache local in mac os sierra, , found problem resource file in index.html when turn same build in ubuntu project run correctly no error.

i run build project in default server apache on mac os sierra 10.12.4 : result in mac os sierra 10.12.4 default apache (when used mamp pro in macos status of loading files 404)

when run same build project in ubuntu 16.04 lts : result in ubuntu 16.04 lts default apache

version used :

  • angular: 2.4.8
  • angular cli: 1.0.0-rc.0
  • webpack: 2.2.1

its missing valid base href, make sure index.html contains

  <base href="."> 

Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -