File tree Expand file tree Collapse file tree 2 files changed +68
-14878
lines changed
packages/plugin-bundle-stats/mocks/fixtures/angular-minimal Expand file tree Collapse file tree 2 files changed +68
-14878
lines changed Original file line number Diff line number Diff line change 1+ # Angular Minimal App
2+
3+ This is a minimal Angular application used for testing bundle statistics.
4+
5+ ## Prerequisites
6+
7+ - Node.js (version 18 or higher)
8+ - npm or yarn package manager
9+
10+ ## Installation
11+
12+ Install the dependencies:
13+
14+ ``` bash
15+ npm install
16+ ```
17+
18+ ## How to Build the App
19+
20+ ### Development Build
21+
22+ For development with live reload:
23+
24+ ``` bash
25+ npm run start
26+ ```
27+
28+ This will start the development server at ` http://localhost:4200 ` .
29+
30+ ### Production Build
31+
32+ For a production-optimized build:
33+
34+ ``` bash
35+ npm run build
36+ ```
37+
38+ The build artifacts will be stored in the ` dist/ ` directory.
39+
40+ ### Build with Bundle Statistics
41+
42+ To build with bundle statistics (useful for analyzing bundle size):
43+
44+ ``` bash
45+ npm run build:stats
46+ ```
47+
48+ This generates a ` stats.json ` file along with the build output, which can be used for bundle analysis.
49+
50+ ### Development Build with Watch Mode
51+
52+ For development with automatic rebuilding on file changes:
53+
54+ ``` bash
55+ npm run watch
56+ ```
57+
58+ ## Testing
59+
60+ Run unit tests:
61+
62+ ``` bash
63+ npm run test
64+ ```
65+
66+ ## Build Output
67+
68+ The built application will be available in the ` dist/angular-minimal/ ` directory after running any build command.
You can’t perform that action at this time.
0 commit comments