捆绑时导出角材-使用manfredsteyer / ngx-build-plus

时间:2019-03-12 06:11:39

标签: angular webpack angular-material

我想在构建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"
    }
}

0 个答案:

没有答案