mygento/module-js-bundler

Magento 2 高级 JS 打包器

安装次数: 6,371

依赖项: 0

建议者: 0

安全性: 0

星标: 0

关注者: 11

分支: 1

开放问题: 0

类型:magento2-module

2.4.0 2022-09-01 13:22 UTC

This package is auto-updated.

Last update: 2024-08-29 05:00:33 UTC


README

Build Status Latest Stable Version Total Downloads

使用 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 上进行测试