abeta-io / magento2-hyva
Abeta 扩展的Hyvä 主题兼容性模块
dev-main
2024-10-02 11:41 UTC
Requires
- abeta-io/magento2: *
- hyva-themes/magento2-compat-module-fallback: *
- magento/framework: *
This package is auto-updated.
Last update: 2024-10-02 11:41:26 UTC
README
此仓库包含一个模块,该模块启用对Hyvä的Abeta支持。此模块依赖于Abeta Magento 2模块。
安装
- 使用composer安装模块
composer composer require abeta-io/magento2-hyva
- 启用模块
bin/magento module:enable Abeta_HyvaPunchOut
- 升级数据库
bin/magento setup:upgrade
- 让Hyvä了解新模块
php bin/magento hyva:config:generate
- 生成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
插件
- 进入您的主题文件夹:
app/design/frontend/<Vendor>/<Theme>/web/tailwind
- 安装模块
npm install --save-dev @hyva-themes/hyva-modules
- 打开您的
postcss.config.js
并在第一行添加以下内容
const { postcssImportHyvaModules } = require("@hyva-themes/hyva-modules");
- 确保插件包含在插件列表中
module.exports = { plugins: [ postcssImportHyvaModules, // ... ], };