"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "build/client-dist",
"index": "client/index.html",
"main": "client/main.ts",
"polyfills": "client/polyfills.ts",
"tsConfig": "tsconfig.client.json", // <----- remove this?
"assets": ["client/favicon.ico", "client/assets"],
"styles": ["client/styles.scss"],
"scripts": [],
"es5BrowserSupport": true
有没有一种方法可以阻止ng build
使用webpack ts-loader
将打字稿编译为javascript。我在angular / webpack之外的单独步骤中执行此操作。