fix ngx build

This commit is contained in:
Rene Haas
2022-10-19 13:57:25 +02:00
parent 6329332fc3
commit d3c1abe7ab
5 changed files with 5 additions and 105 deletions
+2 -102
View File
@@ -12,7 +12,8 @@
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "ng-package.json"
"project": "ng-package.json",
"tsConfig": "tsconfig.lib.prod.json"
},
"configurations": {
"production": {
@@ -33,107 +34,6 @@
}
}
}
},
"example": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"inlineTemplate": true,
"inlineStyle": true,
"style": "scss",
"skipTests": true
},
"@schematics/angular:class": {
"skipTests": true
},
"@schematics/angular:directive": {
"skipTests": true
},
"@schematics/angular:guard": {
"skipTests": true
},
"@schematics/angular:interceptor": {
"skipTests": true
},
"@schematics/angular:pipe": {
"skipTests": true
},
"@schematics/angular:resolver": {
"skipTests": true
},
"@schematics/angular:service": {
"skipTests": true
}
},
"root": "example",
"sourceRoot": "example/src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/example",
"index": "example/src/index.html",
"main": "example/src/main.ts",
"polyfills": "example/src/polyfills.ts",
"tsConfig": "example/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": ["example/src/favicon.ico", "example/src/assets"],
"styles": ["example/src/styles.scss"],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"fileReplacements": [
{
"replace": "example/src/environments/environment.ts",
"with": "example/src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "example:build:production"
},
"development": {
"browserTarget": "example:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "example:build"
}
}
}
}
}
}
+2 -2
View File
@@ -4,8 +4,8 @@
"private": true,
"scripts": {
"ng": "ng",
"example": "ng serve example",
"build": "ng build",
"example": "ng serve",
"build": "ng build overlayscrollbars-ngx",
"test": "ng test"
},
"peerDependencies": {
@@ -8,5 +8,5 @@
"inlineSources": true,
"types": []
},
"exclude": ["test/test.ts", "**/*.spec.ts"]
"include": ["./src/**/*"]
}