mygento / module-js-bundler
Magento 2 高级 JS 打包器
2.4.0
2022-09-01 13:22 UTC
Requires
- magento/module-deploy: 100.4.*
Requires (Dev)
- mygento/coding-standard: ~2.14.0
This package is auto-updated.
Last update: 2024-08-29 05:00:33 UTC
README
使用 composer 安装
- 包含仓库:
composer require mygento/module-js-bundler
用法
在主题的 etc 文件夹中放置一个名为 js_bundler.xml 的文件
<?xml version="1.0" encoding="utf-8"?>
<bundles>
<bundle name="catalog">
<item>Magento_Catalog/js/product/list/toolbar</item>
<item>Magento_Catalog/js/price-box</item>
<item>Magento_Catalog/js/catalog-add-to-cart</item>
</bundle>
....
<bundle name="checkout">
<item>....</item>
<item>....</item>
<item>....</item>
</bundle>
</bundles>
兼容性
该模块已在 Magento 版本 2.3.x 上进行测试