2017-02-09 19 views
0

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 

答えて

1

あなたはmannuallyファイル

config/themes/{theme_name}/shop{shopid}.json 

それはその1 OVE優先権を持っているを削除したり、名前を変更する必要があります。すでに1.7.1について報告され解決されています。 次に、アセットのコードがキャッシュされたコードに追加されます(ファイルの読み込み回数を減らすため)。

+0

ありがとう、私はtheme.ymlファイルの変更を行うたびにそれを行う必要がありますか? –

+0

1.7.1で修正されたと報告されています。それまではそうだった。私は、キャッシュをアクティブにしないで、それを再作成しないことを確認することができますので、名前を削除/変更する必要はありません。 – sadlyblue

関連する問題