Skip to content

Commit

Permalink
build source-maps to separate folder (#1216)
Browse files Browse the repository at this point in the history
  • Loading branch information
horlah authored Dec 12, 2022
1 parent c1677d5 commit 353c303
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

# ui depencencies
**/node_modules
**/source-maps
**/.angular/cache
**/storybook-static

Expand Down
2 changes: 2 additions & 0 deletions web/ui/dashboard/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ testem.log
# System Files
.DS_Store
Thumbs.db

./source-maps
3 changes: 2 additions & 1 deletion web/ui/dashboard/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
"outputHashing": "all",
"sourceMap": true
},
"development": {
"buildOptimizer": false,
Expand Down
1 change: 1 addition & 0 deletions web/ui/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"ng": "ng",
"start": "ng serve --hmr",
"build": "ng build",
"postbuild": "mkdir ./source-maps && mv `pwd`/dist/*.map ./source-maps",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"docs:json": "compodoc -p ./tsconfig.app.json -e json -d .",
Expand Down

0 comments on commit 353c303

Please sign in to comment.