drewml / bundlegento Goto Github PK
View Code? Open in Web Editor NEWEffective JavaScript bundling for Magento 2 ๐ฆ
License: Open Software License 3.0
Effective JavaScript bundling for Magento 2 ๐ฆ
License: Open Software License 3.0
When bundlegento
runs, it operates on the first theme discovered in the specified theme's directory inside pub/static
. Every locale needs bundles, but JS should not be changing between locales.
We should do a write operation for the bundles in the first locale, then do a copy (copy-on-write where possible) to the other locales.
File | Missing Shim Dependencies |
---|---|
lib/web/magnifier/magnifier.js |
jquery |
lib/web/jquery/patches/jquery-ui.js |
jquery/ui |
bundlegento
is the source of knowledge that can answer the question "which bundles should be loaded for X page."
Since Magento does the rendering of the pages, though, bundlegento
needs to spit out a manifest mapping layout handle rules >> bundles. The format is documented in MODULESPECS.md
bundlegento/src/computeBundles.ts
Lines 63 to 69 in f686c3d
bundlegento/src/configLocator.ts
Line 32 in f686c3d
I don't think it's possible to come up with a name that is more cheesy than bundlegento
.
Currently, running against luma with m2 sample data, you get an empty cms.js
for the homepage.
Requirements
If a group has 0 modules associated with it (after hoisting shared modules):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.