I installed Install source-map-explorer globally need to decrease bundle files to optimize anlyze
- To Increase speed of Initial load page I have done
- Lazy loading module with preloading.
- Gulp compress configured for Images and JS files.
so need to decrease bundle JS files , I didn't see webpack.conf reference link file in my angular 6 project .
$ npm install -g source-map-explorer
package.json
{
"name": "cfch",
"version": "0.0.0",
"main": "gulpfile.js",
"scripts": {
"ng": "ng",
"start": "gulp && ng serve --proxy-config proxy.conf.json",
"build": "ng build --prod --source-map gulp",
"prebuild": "gulp"
},
"dependencies": {
"@angular/animations": "^6.1.0",
"@angular/cdk": "^6.1.0",
"@angular/common": "^6.1.0",
"@angular/compiler": "^6.1.0",
"@angular/core": "^6.1.0",
"gulp-htmlmin": "^5.0.1",
"gulp-imagemin": "^5.0.3",
"gulp-minify-css": "^1.2.4",
"gulp-uglify": "^3.0.1",
"ts-xlsx": "0.0.11",
"webpack-sources": "^1.3.0",
},
"devDependencies": {
"source-map-explorer": "^1.7.0",
}
Note:vendor.js and main.js 2.4MB and 222KB