|
|
@@ -86,18 +86,95 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "build-no-federation": {
|
|
|
+ "builder": "@angular-builders/custom-webpack:browser",
|
|
|
+ "options": {
|
|
|
+ "sourceMap": true,
|
|
|
+ "vendorChunk": true,
|
|
|
+ "optimization": false,
|
|
|
+ "outputPath": "build",
|
|
|
+ "index": "src/index.html",
|
|
|
+ "main": "src/main.ts",
|
|
|
+ "polyfills": "src/polyfills.ts",
|
|
|
+ "tsConfig": "tsconfig.app.json",
|
|
|
+ "preserveSymlinks": true,
|
|
|
+ "allowedCommonJsDependencies": [
|
|
|
+ "xml-utils/find-tags-by-name",
|
|
|
+ "lru-cache",
|
|
|
+ "pbf",
|
|
|
+ "queue",
|
|
|
+ "xml-js",
|
|
|
+ "geostyler-legend",
|
|
|
+ "ol-popup",
|
|
|
+ "geostyler-openlayers-parser",
|
|
|
+ "geostyler-sld-parser"
|
|
|
+ ],
|
|
|
+ "assets": [
|
|
|
+ {
|
|
|
+ "glob": "**/*",
|
|
|
+ "input": "src/assets",
|
|
|
+ "output": "./assets"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "glob": "**/*",
|
|
|
+ "input": "./node_modules/hslayers-ng/src/assets",
|
|
|
+ "output": "./assets"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "styles": [
|
|
|
+ "./node_modules/hslayers-ng/css/hslayers-ng.css",
|
|
|
+ "./src/styles.scss"
|
|
|
+ ],
|
|
|
+ "scripts": [],
|
|
|
+ "customWebpackConfig": {
|
|
|
+ "path": "base-webpack.config.js"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "configurations": {
|
|
|
+ "production": {
|
|
|
+ "fileReplacements": [
|
|
|
+ {
|
|
|
+ "replace": "src/environments/environment.ts",
|
|
|
+ "with": "src/environments/environment.prod.ts"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "optimization": true,
|
|
|
+ "outputHashing": "all",
|
|
|
+ "sourceMap": true,
|
|
|
+ "namedChunks": false,
|
|
|
+ "extractLicenses": true,
|
|
|
+ "vendorChunk": true,
|
|
|
+ "buildOptimizer": true,
|
|
|
+ "budgets": [
|
|
|
+ {
|
|
|
+ "type": "initial",
|
|
|
+ "maximumWarning": "2mb",
|
|
|
+ "maximumError": "5mb"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "anyComponentStyle",
|
|
|
+ "maximumWarning": "200kb",
|
|
|
+ "maximumError": "300kb"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "customWebpackConfig": {
|
|
|
+ "path": "base-webpack.config.js"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
"serve": {
|
|
|
- "builder": "@angular-devkit/build-angular:dev-server",
|
|
|
+ "builder": "@angular-builders/custom-webpack:dev-server",
|
|
|
"options": {
|
|
|
- "browserTarget": "fieldcalc:build"
|
|
|
+ "browserTarget": "fieldcalc:build-no-federation"
|
|
|
},
|
|
|
"configurations": {
|
|
|
"production": {
|
|
|
- "browserTarget": "fieldcalc:build:production"
|
|
|
+ "browserTarget": "fieldcalc:build-no-federation:production"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- "federated-serve": {
|
|
|
+ "federatedServe": {
|
|
|
"builder": "ngx-build-plus:dev-server",
|
|
|
"options": {
|
|
|
"port": 5100,
|
|
|
@@ -106,12 +183,8 @@
|
|
|
"configurations": {
|
|
|
"production": {
|
|
|
"browserTarget": "fieldcalc:build:production"
|
|
|
- },
|
|
|
- "development": {
|
|
|
- "browserTarget": "fieldcalc:build:development"
|
|
|
}
|
|
|
- },
|
|
|
- "defaultConfiguration": "development"
|
|
|
+ }
|
|
|
},
|
|
|
"extract-i18n": {
|
|
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|