angularjs - systemjs-builder: Angular 2 Component Relative Paths cause 404 errors -
this cross post https://github.com/systemjs/builder/issues/611 i'm trying bundle angular 2 rc 1 app systemjs-builder 0.15.16 buildstatic method. angular component has view 1 or more stylesheets external script. referred within @component metadata in one of 2 ways using absolute paths: @component({ templateurl: 'app/some.component.html', styleurls: ['app/some.component.css'] }) using recommended relative paths: @component({ moduleid: module.id, templateurl: 'some.component.html', styleurls: ['some.component.css'] }) my app uses relative paths, , things have been working fine. today decided use systemjs-builder's buildstatic . resulting file throws 404 errors whenever there relative path because browser fetching localhost/some.component.html instead of localhost/app/some.component.html . below relevant part of gulpfile.js var appdev = 'dev/'; var appprod = 'app/'; var typescript = require('gu