Awesome
baler
baler
is an AMD module bundler and preloader for Magento 2 stores.
Getting Started (Early Alpha)
If you're willing to test alpha software, please proceed
Docs
Usage
Usage
$ baler <command> [options]
Commands
build --theme Vendor/name
graph --theme Vendor/name
Examples
Optimize all eligible themes
$ baler build
Optimize multiple themes
$ baler build --theme Magento/foo --theme Magento/bar
Generate Dependency Graph
$ baler graph --theme Magento/luma
Debugging
node.js debugger
- Run
node --inspect-brk $(which baler)
- In Chrome, visit
chrome://inspect
- Click
Inspect
on the pending connection
Tracing
Run the CLI with the --trace
flag. An event log will be written to baler-trace-{timestamp}.txt