Skip to content

Commit

Permalink
feat(analyzer): replace webpack-bundle-analyzer with source-map-explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Jul 4, 2020
1 parent 8ff3354 commit 7f46516
Show file tree
Hide file tree
Showing 4 changed files with 151 additions and 77 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Run `yarn doc:serve` to serve docs.

Run `yarn deploy:mock` to deploy demo app to gp-pages.

Analyzing bundle size `yarn bundle-report`
Analyzing bundle size `ng run webapp:analyze`

Analyzing and Visualizing the Dependency Graph (affected modules by uncommitted changes)

Expand Down
6 changes: 6 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,12 @@
"exportFormat": "json"
}
}
},
"analyze": {
"builder": "@ngx-builders/analyze:analyze",
"options": {
"outputPath": "dist/apps/webapp"
}
}
},
"prefix": "ngx",
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"build:prod": "ng build webapp -c=production",
"deploy": "ng deploy --base-href=/ngx-starter-kit/ --configuration=mock",
"deploy:mock": "ng deploy --base-href=/ngx-starter-kit/ --configuration=mock",
"bundle-report": "ng build -c=production --stats-json && webpack-bundle-analyzer dist/apps/webapp/stats-es2015.json",
"report-coverage": "codecov --token=$CODECOV_TOKEN",
"// - RELEASE": "release Apps and Libs",
"commit": "git-cz",
Expand Down Expand Up @@ -183,6 +182,7 @@
"@angular/compiler-cli": "10.0.2",
"@angular/language-service": "10.0.2",
"@compodoc/compodoc": "*",
"@ngx-builders/analyze": "^2.0.0",
"@nrwl/angular": "9.5.1",
"@nrwl/nest": "9.5.1",
"@nrwl/workspace": "9.5.1",
Expand Down Expand Up @@ -226,8 +226,7 @@
"lite-server": "2.5.4",
"prettier": "2.0.5",
"semantic-release": "17.1.1",
"ts-jest": "26.1.1",
"webpack-bundle-analyzer": "3.8.0"
"ts-jest": "26.1.1"
},
"resolutions": {
"d3": "4.13.0",
Expand Down
Loading

0 comments on commit 7f46516

Please sign in to comment.