These are chat archives for AngularClass/angular2-webpack-starter

28th
Mar 2017
Alen
@Devgaze
Mar 28 2017 15:38
Hi everyone, so I'm trying to build my project and it finishes it without any errors, my first page loads but when I try to access users page directly by entering URL path it throws 404. Trying to do the same while dev server running just works fine. The only thing I changed in router module is location strategy to push strategy. I tried the same thing on the repo itself and it doesn't work as well, so I'm thinking did I forgot to change something else? Any help appreciated
Steps to reporoduce:
  1. git clone --depth 1 https://github.com/angularclass/angular2-webpack-starter.git
  2. npm install
  3. in src/app/app.module.ts remove following , { useHash: false, preloadingStrategy: PreloadAllModules }
  4. run npm run build:prod
  5. run npm run server:prod
  6. navigate to http://127.0.0.1:8080/details
Alen
@Devgaze
Mar 28 2017 15:44
what am I missing here (I'm getting a feeling it's one of those situations when you don't see an elephant in front of you) :worried:
Alen
@Devgaze
Mar 28 2017 16:16
ok I'm an dumbass, I didn't provide web.config (.htaccess) in CopyWebpackPlugin