我想在构建angular7应用程序时排除@ angular / material,因为它增加了包的大小。以下是在webpack.externals.js中导出其他软件包的代码段
module.exports = {
"externals": {
"rxjs": "rxjs",
"@angular/core": "ng.core",
"@angular/common": "ng.common",
"@angular/platform-browser": "ng.platformBrowser",
"@angular/elements": "ng.elements"
}
}