Shopware 6: bin/watch-storefront.sh 不显示我们的自定义主题
Shopware 6: bin/watch-storefront.sh does not show our custom theme
我们正在使用 ManuTheme 和 bin/watch-storefront.sh。 (生产模板,客户店铺)
但是使用 Webpack 代理显示的站点看起来与我们通常看到的非常不同。
一种说法是主题的文件没有被加载?
这是真的?使用 watch-storefront
时是否需要额外的工作来加载所有主题文件?
在 Webpack 输出中列出了所有主题模块:
# Webpack Plugin Injector: Plugin "Storefront" injected as a new entry point
# Webpack Plugin Injector: Plugin "ExampleProductListing" injected as a new entry point
# Webpack Plugin Injector: Plugin "DmfManuTheme" injected as a new entry point
# Webpack Plugin Injector: Plugin "dev24PriceFilterRangeSlider" injected as a new entry point
但缺少一些 CSS。我们检查了是否无法加载文件,但网络选项卡中没有错误。
当我们正常打开页面时(没有Webpack Proxy)有
.main-newsletter {
background: #cddd5d;
color: #242424;
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
这来自主题。但是当我们通过webpack代理打开的时候,这个就不见了。
这可能是预期的行为吗?如何进一步调试?
我们也试过改变bin/watch-storefront.sh
npm --prefix vendor/shopware/storefront/Resources/app/storefront/ run-script hot-proxy
至
npm --prefix vendor/store.shopware.com/dmfmanutheme/src/Resources/app/storefront run-script hot-proxy
但后来它甚至没有启动。
确保在 base.scss
中引用了所有 css 个文件。当前版本仅加载 base.scss
而旧版本加载所有文件。
可能您的主题还没有为 6.4 版做好准备
我们正在使用 ManuTheme 和 bin/watch-storefront.sh。 (生产模板,客户店铺)
但是使用 Webpack 代理显示的站点看起来与我们通常看到的非常不同。
一种说法是主题的文件没有被加载?
这是真的?使用 watch-storefront
时是否需要额外的工作来加载所有主题文件?
在 Webpack 输出中列出了所有主题模块:
# Webpack Plugin Injector: Plugin "Storefront" injected as a new entry point
# Webpack Plugin Injector: Plugin "ExampleProductListing" injected as a new entry point
# Webpack Plugin Injector: Plugin "DmfManuTheme" injected as a new entry point
# Webpack Plugin Injector: Plugin "dev24PriceFilterRangeSlider" injected as a new entry point
但缺少一些 CSS。我们检查了是否无法加载文件,但网络选项卡中没有错误。
当我们正常打开页面时(没有Webpack Proxy)有
.main-newsletter {
background: #cddd5d;
color: #242424;
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
这来自主题。但是当我们通过webpack代理打开的时候,这个就不见了。
这可能是预期的行为吗?如何进一步调试?
我们也试过改变bin/watch-storefront.sh
npm --prefix vendor/shopware/storefront/Resources/app/storefront/ run-script hot-proxy
至
npm --prefix vendor/store.shopware.com/dmfmanutheme/src/Resources/app/storefront run-script hot-proxy
但后来它甚至没有启动。
确保在 base.scss
中引用了所有 css 个文件。当前版本仅加载 base.scss
而旧版本加载所有文件。
可能您的主题还没有为 6.4 版做好准备