0
我正在尝试将我的团队代码从AngularJS更新到Angular,并且我正在关注此guide。 在this section他们谈论了update
包以及如何为它添加映射。在引导他们使用SystemJS
而我的团队使用Webpack
,我wondring什么eqauivalent映射我需要添加到我的webpack.config.js
:AngularJS 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',
/* . . . */
},