I'm using Angular2 RC4 version and webpack dev server. I'm not able to successfully load my application. On the browser console it throws 404 and fails to load AppComponent template file using webpack. This works if I use lite-server
app.component.ts snippet
@Component({
moduleId:module.id,
selector: 'body',
templateUrl: 'app.component.html',
})
webpack.config.js snippet
module:{
loaders:[
{test:/\.ts$/, loader:'ts', exclude: /node_modules/},
{test:/\.html$/, loader:'html' },
],
},
Error browser_adapter.js?0526:84Error: Uncaught (in promise): Failed to load /app.component.html