2017-07-17 62 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安裝升級包並繼續。