Path of external component template or css when compiling TypeScript to outDir
问题 When I code Angular 2 apps, my tsconfig.json file contains the following parameter: "outDir": "dist" meaning the TypeScript-to-JavaScript compilation will store generated files in the dist folder. My problem is when I try using components which have an external template or CSS file and which use component-relative paths, like so: @Component({ moduleId: module.id, selector: 'my-cmp', templateUrl: 'my.component.html', styleUrls: ['my.component.css'] }) export class MyComponent { } The browser