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:
- Open
theme/tools/gulp.config.js
and refer tobase->global->src
config node. Themandatory
contains of the core resource that are required for the Metronic's base functionalty while theoptional
node lists the optional resource that can be excluded according to a project requirements. - Under
optional
node remove any resource by referring to a plugins documentation - Recompile the assets using the Gulp builder
Replies (0)
There is no reply for this question at the moment. Be first to leave a reply.