magento / m2-devtools

Helpful in-browser debugging/inspection tools for the Magento 2 Front-End
Open Software License 3.0
172 stars 48 forks source link

Option for shared bundle to include just JS on all pages rather than >1 #63

Open harrigo opened 4 years ago

harrigo commented 4 years ago

This issue is a:

Environment

Question Answer
Magento version 2.3.3
Browser + version Chrome
node.js version (node -v)
npm version (npm -v)

Description

Compared to my last build.js on 2.2.x found here https://github.com/antonkril/magento-rjs-config my pages seem large. May be missing something but wondering if an option for shared.js bundle to only include files on all pages may be better like above build.js. Checkout files end up in there as used in cart and checkout and that sort of thing and feel that main file would get considerably smaller.

Expected result:

Option available in dev tools to set the number of page types required for JS files to be included in the shared bundle as feel 2 or more is low and causes larger pages.