Generate RequireJS Optimizer configuration for Magento 2 website.
config-gen
is packaged as a single binary (currently only osx) to enable
easy usage, just check the releases
page and download the latest.
./config-gen http://example.com
This will provide you with a new url, something like http://127.0.0.1
.
presets:
- name: m2
options:
bundle_config: file:test/fixtures/bundle-config.yaml
bundles:
- name: bundles/main
urls:
- "/"
- "/index.php/women/tops-women/jackets-women.html"
children:
- name: bundles/product
urls:
- /index.php/juno-jacket.html
children: []