abeta-io/magento2-hyva

Abeta 扩展的Hyvä 主题兼容性模块

安装次数: 0

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放性问题: 0

语言:HTML

类型:magento2-module

dev-main 2024-10-02 11:41 UTC

This package is auto-updated.

Last update: 2024-10-02 11:41:26 UTC


README

此仓库包含一个模块,该模块启用对Hyvä的Abeta支持。此模块依赖于Abeta Magento 2模块。

安装

  1. 使用composer安装模块
composer composer require abeta-io/magento2-hyva
  1. 启用模块
bin/magento module:enable Abeta_HyvaPunchOut 
  1. 升级数据库
bin/magento setup:upgrade
  1. 让Hyvä了解新模块
php bin/magento hyva:config:generate
  1. 生成CSS文件
npm --prefix vendor/hyva-themes/magento2-default-theme/web/tailwind/ run ci
npm --prefix vendor/hyva-themes/magento2-default-theme/web/tailwind/ run build-prod

或从您的主题

npm --prefix app/design/frontend/<Vendor>/<Theme>/web/tailwind run ci
npm --prefix app/design/frontend/<Vendor>/<Theme>/web/tailwind run build-prod

缺少样式?

确保PostCSS在您的主题中使用postcssImportHyvaModules插件

  1. 进入您的主题文件夹:app/design/frontend/<Vendor>/<Theme>/web/tailwind
  2. 安装模块
npm install --save-dev @hyva-themes/hyva-modules
  1. 打开您的postcss.config.js并在第一行添加以下内容
const { postcssImportHyvaModules } = require("@hyva-themes/hyva-modules");
  1. 确保插件包含在插件列表中
module.exports = {
    plugins: [
        postcssImportHyvaModules,
        // ...
    ],
};