shopware - Storefront Shopware 6.1 中的自定义 scss
问题描述
我无法为我的 shopware 6.1 Storefront 插件加载我的 scss 文件。
通过将文件放置在正确的位置,它应该会自动工作。但是现在在 6.1 中有了正确的位置,目录结构发生了变化。商店软件文档未更新。
我试过:
plugin-root/src/Resources/app/storfront/src/style
和
plugin-root/src/Resources/app/storfront/style
但它不起作用。
到目前为止,我使用 webpack 导入加载了我的 scss,但它仅在更改 webpack 配置后才有效。所以我想这不是推荐的方式。
解决方案
你试过正确的路径吗?在您的消息中是一个拼写错误 - 它不是“storfront”,而是“storefront”。
来自shopware 6.1的官方changelog.md:https://github.com/shopware/platform/blob/6.1/CHANGELOG-6.1.md
据我所知,路径应该是:
plugin/src/Resources/app/storefront/src/scss