Ich habe an Prestashop 1.7 gearbeitet und meine theme.yml-Datei so aktualisiert, dass sie wie folgt aussieht, aber nicht in der Datei hinzugefügt wird. Die Datei befindet sich in diesem Verzeichnis, wird aber nicht eingezogen. Vorschläge für den Code? Ich möchte die JS-Datei aufzunehmen, aber es nicht in Mitleidenschaft gezogen wird.Prestashop 1.7 JS-Dateien werden nicht hinzugefügt
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
Danke, muss ich das jedes Mal tun, wenn ich eine Änderung in der theme.yml Datei mache? –
Es wird berichtet, dass es in 1.7.1 behoben wurde. Also bis dahin, ja. Ich kann bestätigen, dass kein Cache aktiviert ist, es wird nicht neu erstellt, so dass es nicht nötig ist, den Namen zu löschen/ändern. – sadlyblue