npm install
- Run prod command
npm run start:prod
Note: If you want to run the build-report command on your own angular app, you need to add the command in the package.json
.
"start:prod": "ng serve --prod",
-
Access to the page at
http://localhost:4200
-
Open the chrome's console, go to the
Lighthouse
tab and run an audit with the Performance box checked (you can remove the other checkboxes)
Build the bundle size report:
npm run build:report
Launch the report result:
npm run watch:report
Note: If you want to run the build-report command on your own angular app, you need to add the command in the package.json
.
"build:report": "ng build --prod --stats-json"
Click on the button Show content of concatenated modules
in the left menu to see the details.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.