SkillAgentSearch skills...

HowToKeepAngularDeploymentSizeSmall

A sample project to show how to make angular2+ deployment size small. It uses lazy loaded modules to keep the size small.

Install / Use

/learn @younos1986/HowToKeepAngularDeploymentSizeSmall
About this skill

Quality Score

0/100

Category

Operations

Supported Platforms

Universal

README

HowToKeepAngularDeploymentSizeSmall

A sample project to show how to make angular2+ deployment size small. It uses lazy loaded modules to keep the size small.

This project was generated with Angular CLI version 7.3.4.

Live <a target='_blank' href='https://younos1986.github.io/HowToKeepAngularDeploymentSizeSmall/#'> Home page demo </a>

Live <a target='_blank' href='https://younos1986.github.io/HowToKeepAngularDeploymentSizeSmall/#/dashboard'> Admin panel demo </a>

The routing schema

To make any page independent and make them not affect other pages' size, every page is a lazy loaded Module

                                 ------------>    Dashboard (router + template)
app.component (router) -------->
                                 ------------>    Home  (router + template)
                                                                              -------------> aboutus
                                                                              -------------> blog
                                                                              -------------> contact
                                                                              -------------> index
                                                                              -------------> pricing

Admin Panel (page Size ~= 950KB )

<img src='https://raw.githubusercontent.com/younos1986/HowToKeepAngularDeploymentSizeSmall/master/doc/dashboard.png' />

Home Page (page Size ~= 950KB )

<img src='https://raw.githubusercontent.com/younos1986/HowToKeepAngularDeploymentSizeSmall/master/doc/homepage.png' />

The Home page size

<img src='https://raw.githubusercontent.com/younos1986/HowToKeepAngularDeploymentSizeSmall/master/doc/inspected_hompage.png'/>
View on GitHub
GitHub Stars17
CategoryOperations
Updated2y ago
Forks4

Languages

CSS

Security Score

65/100

Audited on Sep 12, 2023

No findings