diff --git a/angular.json b/angular.json index 3379612cda971f6f95d2eceed7a4f206404b7b97..fde8ec1412f8a415d46e2c3491cc7931410e3268 100644 --- a/angular.json +++ b/angular.json @@ -87,6 +87,46 @@ "input": "src/deployments/mlerp/assets/config", "output": "assets/config", "glob": "*.json" + }, + { + "input": "src/deployments/mlerp/assets/favicons", + "output": "assets/favicons", + "glob": "*.json" + } + ] + }, + + "gerp": { + "budgets": [ + { + "type": "anyComponentStyle", + "maximumWarning": "6kb" + } + ], + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.gerp.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true, + "assets": [ + "src/assets", + { + "input": "src/deployments/gerp/assets/config", + "output": "assets/config", + "glob": "*.json" + }, + { + "input": "src/deployments/gerp/assets/favicons", + "output": "assets/favicons", + "glob": "*.json" } ] }, diff --git a/install_gerp.sh b/install_gerp.sh index 51447b65c7a5178c3e2a001e80e9b16a2c9bbf46..38b04a6d793fc7cdf795d9b55079b2cd1fa3b370 100755 --- a/install_gerp.sh +++ b/install_gerp.sh @@ -1,5 +1,5 @@ mkdir -p /opt/strudel2/spa/gerp cp gerp.conf /etc/nginx/snippets cp -r dist/* /opt/strudel2/spa/gerp -cp -r dist/assets/favicon* /opt/strudel2/spa/gerp +cp -r dist/assets/favicons/* /opt/strudel2/spa/gerp echo "you must include /etc/nginx/snippets/gerp.conf in your nginx site config manually" diff --git a/install_mlerp.sh b/install_mlerp.sh index 336d76aa1818c9e3a7a2f92283580d271ea2a72f..91c4569d8ff4632eb3c8a9e8597fce841f45f614 100755 --- a/install_mlerp.sh +++ b/install_mlerp.sh @@ -1,5 +1,5 @@ mkdir -p /opt/strudel2/spa/mlerp cp mlerp.conf /etc/nginx/snippets cp -r dist/* /opt/strudel2/spa/mlerp -cp -r dist/assets/favicon* /opt/strudel2/spa/mlerp +cp -r dist/assets/favicons/* /opt/strudel2/spa/mlerp echo "you must include /etc/nginx/snippets/mlerp.conf in your nginx site config manually"