2017-07-17 82 views
0

我正在尝试将我的团队代码从AngularJS更新到Angular,并且我正在关注此guide。 在this section他们谈论了update包以及如何为它添加映射。在引导他们使用SystemJS而我的团队使用Webpack,我wondring什么eqauivalent映射我需要添加到我的webpack.config.jsAngularJS to Angular with Webpack

System.config({ 
    paths: { 
     // paths serve as alias 
     'npm:': '/node_modules/' 
    }, 
    map: { 
     'ng-loader': '../src/systemjs-angular-loader.js', 
     app: '/app', 
/* . . . */ 
     '@angular/upgrade/static': 'npm:@angular/upgrade/bundles/upgrade- 
static.umd.js', 
/* . . . */ 
    }, 

回答

0

你不应该需要迁移System.config(既不那systemjs-angular-loader,我只为systemjs编写)。

只需要npm安装升级包并继续。