Skip to content

Commit

Permalink
add configuration for Github Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlo-liapin committed Sep 2, 2024
1 parent 9d92655 commit 15cba01
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,37 @@
"maximumWarning": "6kb"
}
]
},
"github": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": {
"styles": false
},
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"baseHref": "/zax-dashboard/",
"outputPath": {
"base": "docs",
"browser": ""
}
}
}
},
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "ng serve --open",
"build": "ng build",
"lint": "ng lint",
"github-pages": "ng build --configuration production --base-href /zax-dashboard/ --output-path docs",
"github-pages": "ng build --configuration github",
"prepare": "rm -rf dist/ && ng build --configuration production",
"dist": "ng build --configuration production"
},
Expand Down

0 comments on commit 15cba01

Please sign in to comment.