preboot/angular-webpack

404 when trying to http a json

phil123456 opened this issue · 4 comments

Hi,

my former code allowed me to http a json but now I use this seed, I get 404's

I am not sure if it is a webpack issue or something

this.http.get('app/translations/en.json') does not work anymore

any hint/help ?

thanks

stupid of me, I have put things in "public" folder, now it's working

yes I did that too

but I try to debug it and I cant see the ts files in chrome, I cant open any files, wonder if the .map files went through

adding # did the trick...(I think)
it's an issue with that version of webpack
webpack/webpack#2145
(not sure since I am a complete angular noob)

 if (isProd) {
    config.devtool = '#source-map';
  }
  else if (isTest) {
    config.devtool = '#inline-source-map';
  }
  else {
    config.devtool = '#eval-source-map';
  }

[edit: just checked without the # and I can see the sources, wtf...]