コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2962 ビュー

I read from cybrosys that we can either use the cdnjs link as an src attribute in the script tag or pull chart.js from git and add it to manifest. I registered cdnjs link to templates and it appears inside head tag, however it doesn't update my charts. Maybe that is because of another link below which calls built-in old chartjs. What about the second option, I don't know how to add chart.js to manifest. (as external dependency? if yes, how?)

アバター
破棄
最善の回答

You can add the latest cdn link for the chart.js library in the assets path, So it will update the library as it updates.


Here is an example showing adding the cdnlink in manifest:


ie:


'assets': {

        'web.assets_backend': [ "https://cdn.jsdelivr.net/npm/chart.js"] }

アバター
破棄
関連投稿 返信 ビュー 活動
0
9月 22
2485
4
5月 21
29052
2
11月 23
9044
0
7月 20
3140
1
6月 23
2533