Работает на Prestashop 1.7 и обновлен файл theme.yml, чтобы он выглядел как ниже, но он не добавляется в файл. Файл находится в этом каталоге, но он не втягивается. Любые предложения для кода? Я хочу, чтобы включить файл JS, но это не втягиваться.Prestashop 1.7 JS файлы не добавляются
assets:
# If you're using this theme as child and you want to load
# the parent theme assets, uncomment this line.
# use_parent_assets: true
# The following lines are showing how to load assets in your page
# Uncomment and change value to start loading css or js files
css:
all:
- id: theme-custom
path: assets/css/custom.css
# product:
# - id: product-style
# path: assets/css/product.css
# media: all
# priority: 200
js:
all:
- id: slick
path: assets/js/external-lib.js
priority: 30
position: bottom
cart:
- id: theme-custom
path: assets/js/custom.js
Спасибо, нужно ли мне это делать каждый раз, когда я вношу изменения в файл theme.yml? –
Сообщается, что оно зафиксировано в 1.7.1. Так до тех пор, да. Я могу подтвердить, что без активации кеша он не будет его воссоздавать, поэтому нет необходимости удалять/изменять имя. – sadlyblue