Prestashop 1.7 入门主题,theme.yml 中的资产无法正常工作

Prestashop 1.7 starter theme, assets in theme.yml is not working

我正在使用 Prestashop 1.7 的入门主题 https://github.com/PrestaShop/StarterTheme

阅读文档我发现我可以为特定模板添加一个 js/css 文件编辑 theme.yml 文件,只需添加(仅作为示例):

assets:
  css:
    all:
      - id: bootstrap-style
        path: assets/css/bootstrap.min.css
  js:
    product:
      - id: jquery
        path: assets/js/jquery.min.js
        priority: 200
        position: bottom

但它不起作用。

这是文档:http://developers.prestashop.com/themes/assets/index.html

有什么想法吗?

已解决。

仅供参考,这里是解决方案:https://github.com/PrestaShop/StarterTheme/issues/181#issuecomment-288043923

希望对您有所帮助。

由于最初接受的答案中提供的 link 不再有效 (returns 404),这里是 posted in another question by @Arnaud Scoté:

If you want reload your configuration :

  1. Modify your theme.yml
  2. Delete the file into ROOT_FOLDER/config/themes/your theme/shop*.json
  3. Refresh your page, prestashop going to regenerate the config json file for your theme