Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2923 Näkymät

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?)

Avatar
Hylkää
Paras vastaus

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"] }

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
syysk. 22
2449
4
toukok. 21
29025
2
marrask. 23
9016
0
heinäk. 20
3121
1
kesäk. 23
2531