How to Reduce CSS/JS Bundle Size By Removing Unused Resources Using Gulp
Hi,Metronic's by default includes all its available resources within the gulp config so the bundle size of the compiled CSS/JS files. To reduce the file size of the CSS/JS bundle files follow the below steps:
theme/tools/gulp.config.jsand refer to
base->global->srcconfig node. The
mandatorycontains of the core resource that are required for the Metronic's base functionalty while the
optionalnode lists the optional resource that can be excluded according to a project requirements.
optionalnode remove any resource by referring to a plugins documentation
- Recompile the assets using the Gulp builder
There is no reply for this question at the moment. Be first to leave a reply.